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