Hello,
I keep getting the following error when restarting Mysql in WHM.
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)' mysql has failed, please contact the sysadmin (result was "mysql has failed").
Mysql is running just fine. When I restart mysql with the command line I get the following:
Shutting down MySQL.[ OK ]
Starting MySQL[ OK ]
I also cannot connect using the command line mysql -u user_name -p.
If I try to change the mysql password in WHM I get the following messages:
Mysql password change failed!!
A forced reset will now be attempted.
I then try resetting the password in WHM, but it doesn't reset. When I try to reset the password in WHM and then use this new password with the above command line, I get the following message:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I can see a password in /root/.my.cnf but it doesn't work and sometimes it changes if I modify it in any way. Not exactly clear how it changes on it's own, but if I tinker with updating mysql, cpanel, or other for example I notice the password changes.
I'm trying to run PHP 5.1.5, MySQL 5.0.24, and Cpanel R119.
Here is a basic my.cnf file I'm using for just trying to get things started. This gets mysql up and running, but it still gives me the error above.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable = max_connections=500
safe-show-database
[mysql.server]
user=mysql
This is all on a new server. Perhaps I need to have someone take a look, but I'm not sure of any server maintenance companies that might be able to help.
Thanks very much.
Jim



LinkBack URL
About LinkBacks







