新しい EC2/RDS セットアップがあります。約 5 つの異なるガイドに従いましたが、phpMyAdmin を接続できません。
まず、これはセキュリティ グループの問題ではありません。すべての接続を受け入れる RDS サーバーを一時的に設定しました。コマンドラインからmysqlを使用して、EC2マシンから接続できます。
EPEL リポジトリから phpMyAdmin をインストールしました。
config.inc.php ファイルを 4 回チェックしました。適切に設定されていると思います。
$i++;
$cfg['Servers'][$i]['host'] = 'xxx.us-west-1.rds.amazonaws.com'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = '3306'; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'cookie';
それでも、phpMyAdmin を使用して接続しようとするたびにエラー #2003 が発生し、MySQL サーバーにログインできません
私は本当にアイデアがありません。phpmyadmin をアンインストールし、すべてのファイルを手動で html ディレクトリに配置しようとしましたが、同じ結果が得られました。構成ファイルのほとんどの設定 (compress、connect type、auth_type) を変更しようとしましたが、うまくいきません。phpMyAdmin を 2.5 時間も機能させようとして失敗したことが信じられません。何が起こっているのかわからない、すべての Web 検索が空になる... この問題を抱えているのは私だけのようです。
誰かがこれを理解するのに役立つかもしれないアイデアを持っているなら、私はそれを感謝します.