mysql5.7 修改root密码登录

来源:互联网 发布:怎样找到淘宝客服工作 编辑:程序博客网 时间:2024/05/21 09:13

su mysql

mysqld --skip-grant-tables

update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';

alter user user() identifity by '123qwe';

GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY '123qwe' WITH GRANT OPTION;


flush privileges;

quit;

0 0
原创粉丝点击