1.打开mysql配置文件vim /etc/mysql/mysql.conf.d/mysqld.cnf 将bind-address = 127.0.0.1注销 2.重启ubuntu数据库 3.将root用户授权给所以连接:grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx'; 最后一个为mysql密码4.让权限立即生效:flush privileges; 5.如果本机与ubuntu16.04 pin
Get Docker for Ubuntu Check system version root@Ubuntu16:~# uname -a Linux Ubuntu16 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux root@Ubuntu16:~# root@Ubuntu16:~# cat /proc/version Linux version 4