mysql 外部からアクセスを許可する

ローカルでの設定

 

mysql ユーザー許可ポート追加
grant all privileges on *.* to ユーザー名@"%" identified by 'password' with grant option;

 

grant all privileges on *.* to root@"%" identified by 'root' with grant option;


vim /etc/my.cnf
bind-address = 0.0.0.0

netstat -ant | grep LISTEN