LoginSignup
0
0

More than 3 years have passed since last update.

MySQL外部接続を可能にする(Debian8)

Last updated at Posted at 2017-10-29

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のネットワーク設定を行う
タグ名を間違えずに設定する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0