database ssh connection |
[eluser]Pedro Luz[/eluser]
Hi, how can i define an database ssh connection in codeigniter? thanks
[eluser]ecsyle31[/eluser]
Why do you need to do ssh tunneling for your database? Are you not able to use a hostname or IP address? This is not supported out of the box in CodeIgniter, as far as I know anyways. This might be a good start for accomplishing this: http://stackoverflow.com/questions/46431...ssh-in-php Probably going to have to write your own db driver for this. Or extend the existing one.
[eluser]Pedro Luz[/eluser]
The currently problem that i have, is that i have my codeigniter project on my machine, but the databases are not on my server computer. they are on another server. and i cannot connect to that database.
[eluser]ecsyle31[/eluser]
If you are on windows you can use putty to create an SSH tunnel to the database server. SSH Tunnels with Putty - http://realprogrammers.com/how_to/set_up...putty.html I recommend just installing a database server on your local machine to do your development. |
Welcome Guest, Not a member yet? Register Sign In |