Access denied for user 'da_admin'@'localhost'

armo

Verified User
Joined
Oct 6, 2007
Messages
14
Location
Iran / Tehran
I have a problem with MySQL after upgrading to 5.1 through custom build.

I can login as root.

Also I can login as da_admin with specified password.

But while I'm trying to grant privileges to da_admin as root :

Code:
GRANT ALL PRIVILEGES ON *.* TO da_admin@localhost IDENTIFIED BY 'mypass' WITH GRANT OPTION;

It says :

Code:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)


User da_admin exists and I can see in mysql.user table and it's set in /usr/local/directadmin/conf/mysql.conf but I have error while trying to connect with directadmin (Error connecting to MySQL: Access denied for user 'da_admin'@'localhost' (using password: NO)) and setting privileges in phpmyadmin
 
Why do you think so? Have you tried to start MySQLd with --skip-grant-tables option?
 
In case anyone comes across this old thread... the problem is when a failed upgrade attempt happens...

To fix:
/usr/bin/mysql_upgrade

... once done run
./build mysql --force

viola problem is gone
 
Back
Top