1
dragobr
problem while connecting to the mysql
  • 2004/11/7 3:42

  • dragobr

  • Just popping in

  • Posts: 4

  • Since: 2004/11/7


hi all...im brazilian, so my english may not be veryy good hehe but i'll try

i was getting an error when trying to install xoops, "could not connect to the database", so i tried some php codes to test the MySQL server

$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

when using localhost, even when using the root account or another account, i've got the error

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in E:\Program Files\YellowTip\Htdocs\teste.php on line 2
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client

when using my ip, with the account different from root, i've got a different error:

Warning: mysql_connect(): Access denied for user 'drago'@'home' (using password: YES) in E:\Program Files\YellowTip\Htdocs\teste.php on line 2
Could not connect: Access denied for user 'drago'@'home' (using password: YES)

yes, im sure the password is correct

and when i try to use root with my ip, i've got the firt error

any ideas?

=(

2
dragobr
Re:problem while connecting to the mysql
  • 2004/11/7 13:44

  • dragobr

  • Just popping in

  • Posts: 4

  • Since: 2004/11/7


i couldnt found any "edit" button, so im posting again to say that i fix the problem

as said in http://dev.mysql.com/doc/mysql/en/Old_client.html, there is a problem with the new MySQL server version 4.1 and the "old clients"

i fix it with

mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

and then it worked

thx :)

Login

Who's Online

260 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 260


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits