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;

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM