我装的是rh9是里面的mysql,进入mysql正常,但是当我想改超级用户密码:
mysqladmin -u root -password abc
总是提示:
mysqladmin:connect to server at 'localhost' failed
eroor:"Access denied for user:'root@localhost'(Using password:YES)"
debian:/home/networkboy# mysqladmin -u root -p password xxxxxx
Enter password:
debian:/home/networkboy# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
debian:/home/networkboy# mysqladmin -u root -p password xxxxxx(你要修改的密码)
Enter password:xxxxxx(输入你原来的密码)
debian:/home/networkboy# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.