mysql安装问题
Tofloor
poster avatar
Jiahao
deepin
2018-08-24 02:19
Author
在安装mysql的时候出现这种情况:      正在设置 mysql-server-5.7 (5.7.21-1) ...      update-alternatives: 使用 /etc/mysql/mysql.cnf 来在自动模式中提供 /etc/mysql/my.cnf (my.cnf)
      Renaming removed key_buffer and myisam-recover options (if present)
      无法获取 /proc/8983/fd/15 的文件状态: 权限不够
      无法获取 /proc/8983/fd/17 的文件状态: 权限不够
然后没有输入root密码就直接安装完成了。
但是我在进入mysql的时候又要求我输入密码,该怎么解决?
我试了https://blog.csdn.net/fr555wlj/article/details/54971412这里的方法,仍旧不行。求大佬帮助。


Reply Favorite View the author
All Replies
avatar
Jiahao
deepin
2018-08-24 15:49
#1
最后使用这种方法安装上了,有同样问题的也可以参考下这篇博客:https://www.jianshu.com/p/40b770d86a7b
Reply View the author
avatar
whoam1
deepin
2018-08-24 16:33
#2
我安装5.7总是有问题,安装无密码,也修改不了.最后装5.6就可以
Reply View the author
avatar
haohaohao
deepin
2018-08-24 17:54
#3
无密码登录 sudo mysql -uroot -p 回车+系统密码+回车
mysql>use mysql;
mysql> select user,host,password,authentication_string,plugin from mysql.user;
无password字段
mysql> update user set authentication_string=password('123456'),plugin='mysql_native_password' where user='root';
Reply View the author