Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 423 Bytes

mysql.md

File metadata and controls

28 lines (19 loc) · 423 Bytes

修改密码

方法一

mysql> set password for root@localhost = password('123456'); 

方法二

mysqladmin -uroot -p123456 password 123 

方法三

mysql> use mysql; 
mysql> update user set password=password('123') where user='root' and host='localhost'; 
mysql> flush privileges; 

方法四

update user set password=password("123") where user="root";