您好我正在尝试将phpMyAdmin
连接到Amazon RDS。我通过这个终端成功连接mysql
mysql -h xxxxxxxxxxxxxxxxxxx.rds.amazonaws.com -u myusername -p
对于phpmyadmin我在 config.inc.php 文件中执行此操作
$i++;
$cfg['Servers'][$i]['host'] = 'xxxxxxxxxxxxxxxxxxx.rds.amazonaws.com';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'myusername';
$cfg['Servers'][$i]['password'] = 'mypassword';
我遇到的问题是如果我这样做并访问phpmyadmin,我的phpmyadmin显示如下
它没有在左侧显示表格列或任何内容。但是,如果我删除此代码,那么一切都恢复正常,这意味着我可以看到表