mysql -uroot -p
use mysql; grant all privileges on *.* to root@'%' identified by "password"; flush privileges;
vim /etc/mysql/mysql.conf.d/mysqld.cnf
註釋掉 bind-address這行
bind-address
service mysql restart