MySQL 数据库修改登录密码
MySQL 数据库修改登录密码、、
--------
mysql修改密码
默认的密码为空:
mysql -u root -p
第一次更改密码:
mysqladmin -uroot -p password xhy
Enter password: xhy
第二次更改密码:
mysqladmin -uroot -pxhy password xhy1
mysql -u root -p
Enter password: xhy1
mysqladmin -uroot -pxhy1 password xhy
Enter password: xhy
use mysql
update user set password=password("")where user="root";
flush privileges;
quit;
mysqladmin: Too few arguments to change password
mysqladmin -uroot -pxhy password xhy1
-----------------
-------------
-----------------
-----------------