3、测试是否修改成功
1)不用密码登录
[root@test1 local]# mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
显示错误,说明密码已经修改。
2)用修改后的密码登录
[root@test1 local]# mysql -u root -p
Enter password: (输入修改后的密码123456)
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 4 to server version: 4.0.16-standard
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql>
成功!这是通过mysqladmin命令修改口令,也可通过修改库来更改口令。

Sybase 11.9.2 For Li
MySQL最新版安装图解
开源DRBD 助力 MySQL
Oracle10g EM出现乱码
Fedora8下安装ORACLE1
MySQL数据库的安装操
RedHat Linux 9.0下安
Redhat Linux 下安装O