mysql设置密码登录

参考:

https://blog.csdn.net/Light_Breeze/article/details/82070222

https://www.jianshu.com/p/d979df2791e9

# use mysql; (无password字段的版本) # update user set authentication_string=PASSWORD("密码") where user='root'; (有password字段的版本) # update user set password=password('密码') where user='root'; # update user set plugin="mysql_native_password"; # flush privileges; # quit;

 

    原文作者:mysql
    原文地址: https://www.cnblogs.com/flypig666/p/11742889.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞