Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how secure are the mySQL db functions for remote server

Status
Not open for further replies.

mes123

Programmer
Jul 29, 2005
62
GB
If I have my PHP script running on one machine and the database hosted on a remote machine so the communication has to travel the web, how secure is the connection? Is there a way of encrypting it at all?

 
Most database servers offer SSL connections. Check with your host if that is available for the respective server.
 
ok, if my service provider has a Secure db server, how do i instruct the mysql db connector to initialize a secure connection?

i'm using something like
Code:
$conn = mysql_connect("[URL unfurl="true"]www.myfabsqlserver.co.uk",[/URL] "myusername", "letmein");

mysql_select_db("mydb", $conn);
etc etc
 
It appears to me that only mysqli functions (PHP5) support SSL connections to MySQL servers.
 
As long as you have the 4.x mysql librarys you should just be able to use:
mysql_connect("value","value","value",CLIENT_SSL);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top