Ubuntu下一定要sudo才能进入mysql解决办法
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '复杂一点的密码';
flush privileges;
'''
如出现本地密码策略问题,参照网上修改本地密码策略。
https://blog.csdn.net/weixin_49891946/article/details/120791640
'''
原创文章,作者:Carrie001128,如若转载,请注明出处:https://blog.ytso.com/tech/database/274661.html