RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
新版mysqlroot不能登录,mysql无密码访问后设置新密码

1,在/etc/my.cnf增加一行
skip-grant-tables
保存退出
2,service MySQLd restart
3,mysql -uroot -p 直接回车进入mysql

创新互联是一家专业从事网站设计制作、网站建设的网络公司。作为专业网站制作公司,创新互联依托的技术实力、以及多年的网站运营经验,为您提供专业的成都网站建设、网络营销推广及网站设计开发服务!

4,登录后输入
use mysql;
select host, user, authentication_string, plugin from user;
update user set authentication_string='' where user='root';
quit;
5,vi /etc/my.cnf
注释掉或删除skip-grant-tables
保存退出

6,service msqld restart,
7,mysql -u root -p 直接回车进入mysql

8,登陆后设置新的密码

9,
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';


网站题目:新版mysqlroot不能登录,mysql无密码访问后设置新密码
本文地址:http://scyingshan.cn/article/iepigp.html