Before I saw your post, this is what I tried.
http://faq.cpanel.net/show.cgi?qa=104700616405907
[email protected] [/scripts]# /etc/init.d/mysql stop; /etc/init.d/chkservd stop; mysqld --skip-grant-tables -u mysql &
Shutting down MySQL... [ OK ]
Stopping chkservd: [ OK ]
[1] 31600
[email protected] [/scripts]# 061125 9:08:15 [Warning] Asked for 196608 thread stack, but got 126976
061125 9:08:15 InnoDB: Started; log sequence number 0 43912
mysqld: ready for connections.
Version: '4.1.18-standard' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition - Standard (GPL)
[email protected] [/scripts]# mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.18-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> UPDATE user SET Password=PASSWORD('') WHERE user='root';
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql> FLUSH PRIVILEGES;
061125 9:08:48 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[email protected] [/scripts]# killall -9 mysqld
[1]+ Killed mysqld --skip-grant-tables -u mysql
[email protected] [/scripts]# /etc/init.d/mysql start
Starting MySQL [ OK ]
[email protected] [/scripts]# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
So there's this warning message when I do FULSH PRIVILEGES,
061125 9:08:48 [Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
Query OK, 0 rows affected (0.00 sec)
Will running the mysql_fix_privilege_tables after resetting the password help?
thanks for all the help
