MySQLサーバーにアクセスできるユーザーを追加する。

ホスト: 全て(localhost以外)
ユーザー名: user
パスワード: password

grant all privileges on *.* to user@'%' identified by 'password' with grant option;

localhostを設定するには

grant all privileges on *.* to user@'localhost' identified by 'password' with grant option;