LoginSignup
9

More than 5 years have passed since last update.

phpMyAdminでAWSのRDS接続する

Posted at

ローカルなどにphpmyadminがインストールされてる前提です。

phpmyadminの設定ファイルを下記のように

config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'database.XXXXXXXX.us-west-1.rds.amazonaws.com';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'hoge';
$cfg['Servers'][$i]['password'] = 'hoge@hoge';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

なんだか微妙にもっさりしてるけど、動きます。。

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
9