vim /etc/my.cnf 在【mysqld】下添加skip-grant-tables 跳过密码监测,进入mysql
use mysql; 进入mysql库
update user set authentication_string=passworD(“12345678”) where user=‘root’;
flush privileges;
更改好后 注释掉skip-grant-tables,并重启mysq

vim /etc/my.cnf 在【mysqld】下添加skip-grant-tables 跳过密码监测,进入mysql
use mysql; 进入mysql库
update user set authentication_string=passworD(“12345678”) where user=‘root’;
flush privileges;
更改好后 注释掉skip-grant-tables,并重启mysq

文章链接: https://www.mfisp.com/11239.html
文章标题:修改mysql密码
文章版权:梦飞科技所发布的内容,部分为原创文章,转载请注明来源,网络转载文章如有侵权请联系我们!
之前