编辑mysql主配置文件 my.cnf
# vim /etc/my.cnf 在[mysqld]字段下添加参数
skip-grant
重启数据库服务 service mysqld restart
4)修改相应用户密码
> use mysql;
> update user set password=password('your password') where user='root';
> flush privileges;
> quit;
本文共 263 字,大约阅读时间需要 1 分钟。
编辑mysql主配置文件 my.cnf
# vim /etc/my.cnf 在[mysqld]字段下添加参数
skip-grant
重启数据库服务 service mysqld restart
4)修改相应用户密码
> use mysql;
> update user set password=password('your password') where user='root';
> flush privileges;
> quit;
转载于:https://blog.51cto.com/8653294/1744942
转载地址:https://blog.csdn.net/weixin_34124651/article/details/91604301 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!