I'm currently doing a Capstone project and I need to establish a secure connection between PHP and MySQL. Is it there some kind of method ?
-
This depends on what you mean by "secure", what you mean by "connection" and what you mean by "between". Do you mean to create an encrypted connection between a web server running PHP and a database server running MySQL?Chris Browne– Chris Browne2011-10-01 23:30:43 +00:00Commented Oct 1, 2011 at 23:30
-
@ChrisBrowne, yeah create an encrypted connection between a web server running PHP and the database running mysqlSkynight– Skynight2011-10-02 00:22:33 +00:00Commented Oct 2, 2011 at 0:22
-
my naive solution would be to set up an SSH tunnel as I'm not aware of MySQL supporting encrypted connections natively, but I'm probably not the right person to ask. Still, if it helps - an SSH tunnel would provide an encrypted channel for your MySQL data.Chris Browne– Chris Browne2011-10-02 00:25:32 +00:00Commented Oct 2, 2011 at 0:25
Add a comment
|
1 Answer
You can use SSL to connect to MySQl. This specifics of this varies based on your platform.