dge_475
02 Apr 2006, 07:22 PM
Hi,
I thought I have successfully installed MySQL on my machine until this another error occur:
Error: 1251 SQLSTATE: 08004 (ER_NOT_SUPPORTED_AUTH_MODE)
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client
whenever I tried to run this script from PHP:
<?php
$link = mysql_connect('localhost', 'root', 'nic');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
I hope somebody could help me on this, thnkx
I thought I have successfully installed MySQL on my machine until this another error occur:
Error: 1251 SQLSTATE: 08004 (ER_NOT_SUPPORTED_AUTH_MODE)
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client
whenever I tried to run this script from PHP:
<?php
$link = mysql_connect('localhost', 'root', 'nic');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
I hope somebody could help me on this, thnkx