PDA

View Full Version : Atuthentication problem in MySQL


maxpico
03-08-2002, 03:32 AM
I've installed the MySQL package from entropy.ch http://www.entropy.ch/software/macosx/mysql/
But when I want to connect to the MySQL server via a Perl script it say
Could not connect to database. Reason: Access denied for user: 'root@localhost' (Using password: YES)
So I wrote to the entropy.ch's webmaster and he told me to go at this page http://sourceforge.net/forum/message.php?msg_id=198555 (http://sourceforge.net/forum/message.php?msg_id=19855598555)

But when I enter this line into the Terminal it say "mysql: No match."
This is the line I've entered
mysql -u root -p mysql GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY mypassword

Please HELP!