回答編集履歴

3

修正

2016/09/03 08:27

投稿

smnsmn
smnsmn

スコア175

test CHANGED
@@ -30,9 +30,9 @@
30
30
 
31
31
  実行するとファイルが開く。
32
32
 
33
- -A INPUT -s 12.345.67.89 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
33
+ -A INPUT -s xx.xxx.xx.xx -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
34
34
 
35
- -A INPUT -s 98.765.43.21 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
35
+ -A INPUT -s xx.xxx.xx.xx -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
36
36
 
37
37
  -A INPUT -s ここにサーバーAのIP -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
38
38
 

2

ユーザー追加のコマンドの後ろに;\(セミコロン\)付け忘れておりましたので、修正しました。

2016/09/03 08:27

投稿

smnsmn
smnsmn

スコア175

test CHANGED
@@ -88,7 +88,7 @@
88
88
 
89
89
  //ユーザーの追加
90
90
 
91
- mysql> grant all privileges on *.* to user@"11.222.33.44" identified by 'パスワード' with grant option
91
+ mysql> grant all privileges on *.* to user@"11.222.33.44" identified by 'パスワード' with grant option;
92
92
 
93
93
 
94
94
 

1

文言追加

2016/03/16 15:40

投稿

smnsmn
smnsmn

スコア175

test CHANGED
@@ -1,3 +1,5 @@
1
+ 質問者です。
2
+
1
3
  terion様のアドバイスと、[参考サイト様](http://linuxserver.jp/%E3%82%B5%E3%83%BC%E3%83%90%E6%A7%8B%E7%AF%89/db/mysql/%E5%A4%96%E9%83%A8%E6%8E%A5%E7%B6%9A%E8%A8%B1%E5%8F%AF%E8%A8%AD%E5%AE%9A)を元に私の行った方法を記載します。
2
4
 
3
5