Welcome Guest, Not a member yet? Register   Sign In
database ssh connection
#1

[eluser]Pedro Luz[/eluser]
Hi,

how can i define an database ssh connection in codeigniter?

thanks
#2

[eluser]Pedro Luz[/eluser]
i really make some hard questions.
#3

[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.
#4

[eluser]InsiteFX[/eluser]
You can try the database DNS name.

InsiteFX
#5

[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.
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB