最初のステップ:ポート3306が開いているかどうかを確認します。そうでない場合は、iptablesに入力してポート3306を開くか、以下のコマンドでこのサービスを停止できます(他の目的を使用していない場合)。
$ service iptables stop
2番目のステップ:ユーザーはIPから接続する権限を持っている必要があります。そうでない場合は、以下のように権限を提供します-
> grant select,insert,update,delete on your_db.* to example@sqldat.com'your_ip' identified by 'your_password';
これが本番サーバーでない場合は、最初に以下のコマンドで問題をチェックするためのグローバルな完全な権限を提供できます-
> grant all privileges on *.* to example@sqldat.com'%' identified by 'your_password';