Google Compute EngineでBitnami Redmineのイメージを個人用環境を作っている際に、
MySQLの外部接続を行ったので、忘備録としてメモ
Debianは初心者なのでお手柔らかに..
aptitudeをインストールする
$ sudo -s
# apt-get install aptitude
① iptablesの設定を行う
「【Debian 8 Jessie】iptablesの設定をこれだけはやっておく - Qiita」https://qiita.com/osktak/items/778287711f7ee0ccec3b
sudo apt -y install iptables-persistent
② MySQLの外部接続可能なユーザーを作成する
- ユーザー作成
- ホスト名と権限付与
③ 外部接続可能なホストを設定する
「Debian/lenny MySQLに外部マシンから接続(リモート接続): プログラミング関係ごちゃごちゃメモ」http://somenotes.seesaa.net/article/140067960.html
/opt/bitnami/mysql/my.cnf で設定を行う(Bitnami Redmineの場合)
④ ComputeEngineのネットワーク設定を行う
タグ名を間違えずに設定する