neteng Posted February 3, 2007 Share Posted February 3, 2007 I curretnly have MySQL 5.0 configured with SSL support. I am able to login to MySQL using the command line from a remote machine using the SSL connection. But when an attempted connection is made via a php script I recieve authentication errors. I believe the problem is that when the attempted connection is made php can't locate the the client certificate. Does anyone have any thoughts on how this can be resolved? Quote Link to comment https://forums.phpfreaks.com/topic/36933-solved-phpssl-connection-to-mysql/ Share on other sites More sharing options...
simcoweb Posted February 3, 2007 Share Posted February 3, 2007 ?? SSL support for MySQL? I've only heard of SSL support for domains. Not for a database server. This is a new one for me. Quote Link to comment https://forums.phpfreaks.com/topic/36933-solved-phpssl-connection-to-mysql/#findComment-176215 Share on other sites More sharing options...
wildteen88 Posted February 3, 2007 Share Posted February 3, 2007 Perhaps you might want to add the MYSQL_CLIENT_SSL Constant to the mysql_connect function eg: $conn = mysql_connect('localhost', 'user, 'pass', false, MYSQL_CLIENT_SSL) or die("Connection failed:<br />" . mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/36933-solved-phpssl-connection-to-mysql/#findComment-176218 Share on other sites More sharing options...
neteng Posted February 3, 2007 Author Share Posted February 3, 2007 That works, Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/36933-solved-phpssl-connection-to-mysql/#findComment-176225 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.