标签:mysql
安装了MYSQL5.7之后,用root用户登录不了。解决办法是:
$sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
add "skip-grant-tables"
$sudo service mysql restart
$mysql -uroot -p
mysql> use mysql;
mysql> update user set authentication_string=password(‘1qaz@WSX3edc$RFVyl‘) where user=‘root‘;
mysql> quit;
本文出自 “用C++写诗” 博客,谢绝转载!
标签:mysql
原文地址:http://frankniefaquan.blog.51cto.com/12613979/1958425