ローカルの設定
ローカルの設定は、phpMyAdminフォルダーにあるconfig.inc.phpを書き換える必要があります。
こんな感じに書かれているので
これで、PhpMyAdminにアクセスすると、サーバーの選択が可能になります。続きを読む
ローカルの設定は、phpMyAdminフォルダーにあるconfig.inc.phpを書き換える必要があります。
こんな感じに書かれているので
/* * First server Localhost */ $i++; /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* User for advanced features */ $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = ''; /* Advanced phpMyAdmin features */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; $cfg['Servers'][$i]['relation'] = 'pma_relation'; $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; $cfg['Servers'][$i]['history'] = 'pma_history'; $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';このあとに$i++を追加して、サーバーの設定値を入力すれば、ローカルにあるサーバー情報を残したまま、AWSのサーバーを追加できます。
/* * AWSのサーバーを追加する */ $i++;
/* あとは、サーバーの設定値を入力していく */ //$cfg['Servers'][$i]['auth_type'] = 'http'; //$cfg['Servers'][$i]['auth_type'] = 'config';
/* * AWSのサーバーを追加する */ $i++; /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; /* サーバーのURLを入力 */ $cfg['Servers'][$i]['host'] = 'xxx.xxxxx.xxxxx.rds.amazonaws.com';
//ポートは、何もいじってなければ、3306 $cfg['Servers'][$i]['port'] = '3306'; /* データベースを作成したときのユーザー名*/ $cfg['Servers'][$i]['user'] = 'username';
/* パスワード */ $cfg['Servers'][$i]['password'] = 'パスワード';
$cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['AllowNoPassword'] = false;
これで、PhpMyAdminにアクセスすると、サーバーの選択が可能になります。続きを読む