sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
sudo service mysql restart
use mysql
select host ,user,authentication_string from user;
grant all privileges on *.* to 'myroot'@'%' identified by 'myroot';
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |