Can I use PHP with SSL to connect to mySQL?
| From: | Daevid Vincent | Date: | Thu, 15 Jan 2004 03:39:50 +0000 |
| Subject: | Can I use PHP with SSL to connect to mySQL? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32399@lists.php.net to get a copy of this message | ||
I see that mySQL has SSL support:
http://www.mysql.com/doc/en/Secure_connections.html
And PHP has some SSL support, but do the mysql() functions work
transparently with SSL? It seems there would have to be a flag for this
mysql_connect() that turned on SSL.
http://us4.php.net/manual/en/function.mysql-connect.php
Basically, I have a little box running PHP as a cgi and want it to connect
securely (SSL) to a server running mySQL. Is this easily do-able? The other
thing is that I fear the mySQL SSL method is going to be overly cumbersome
with the key exchanges. I just want a simple encrypted connection.
Daevid.