galafura Posted February 3, 2010 Share Posted February 3, 2010 Hi I'm running this php file in my PC: <?php $link = mysql_connect('localhost', 'root', 'sa'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> But I'm getting this error: mysql_connect(): Client does not support authentication protocol requested by server. How can I solve this issue. Tks Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 3, 2010 Share Posted February 3, 2010 Your php version, specifically the version of the mysql client library files that come with your version of php, are too old to use with the version of mysql you are using. You need to upgrade your php version. Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/#findComment-1006188 Share on other sites More sharing options...
galafura Posted February 3, 2010 Author Share Posted February 3, 2010 Hi, How can Icheck my PH intalled version ? Tks. Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/#findComment-1006228 Share on other sites More sharing options...
PFMaBiSmAd Posted February 4, 2010 Share Posted February 4, 2010 <?php phpinfo(); ?> Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/#findComment-1006730 Share on other sites More sharing options...
galafura Posted February 4, 2010 Author Share Posted February 4, 2010 Hi, Tks, I have installed: Apache 2.2.3 MySQL 5.0.45 PHP 5.3.1 I still get the same error ... Help me please. Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/#findComment-1006782 Share on other sites More sharing options...
fenway Posted February 11, 2010 Share Posted February 11, 2010 Nothing has changed -- you have old mysql drivers. Link to comment https://forums.phpfreaks.com/topic/190807-mysql_connect-error/#findComment-1010508 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.