Mysql修改密码

2023-10-31  本文已影响0人  王志强_9380

sudo systemctl stop mysqld

sudo mysqld_safe --skip-grant-tables&

mysql -u root

USE mysql;

UPDATEuserSETauthentication_string=PASSWORD('Yzt20220408*')WHEREUser='root';

FLUSH PRIVILEGES;

exitsudo systemctl start mysqld

上一篇下一篇

猜你喜欢

热点阅读