我無法讓PHPMyAdmin連接到我的Amazon RDS實例。我已授予我的IP地址權限給數據庫安全組,可以訪問我嘗試訪問的此數據庫。這裏就是我的工作......使用PHPMyAdmin管理Amazon RDS
$cfg['Servers'][$i]['pmadb'] = $dbname;
$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';
/* Uncomment the following to enable logging in to passwordless accounts,
* after taking note of the associated security risks. */
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
/* Advance to next server for rest of config */
$i++;
}
$cfg['Servers'][$i]['auth_type'] = 'http'; //is this correct?
$cfg['Servers'][$i]['user'] = 'MASTER-USER';
$cfg['Servers'][$i]['password'] = 'MASTER-USER-PASSWORD';
$cfg['Servers'][$i]['hide_db'] = '(mysql|information_schema|phpmyadmin)';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'MY-DB.us-east-1.rds.amazonaws.com';
$cfg['Servers'][$i]['connection_type'] = 'socket';
$cfg['Servers'][$i]['port'] = PORT;
我不知道如果我的配置是正確的......
我得到這個錯誤:#2013 - Lost connection to MySQL server at 'reading initial communication packet', system error: 110
任何人有任何建議?
請不要只發布鏈接作爲答案。將答案發布爲文本,如果需要,請提供鏈接以供進一步解釋。這樣,如果鏈路死亡,答案仍然存在。 – 2010-12-10 15:26:07
我調整了我的文章 – Webnet 2010-12-10 16:45:37
如果您的RDS位於VPC 關於安全組,AWS有一個關於在VPC內從EC2連接到RDS的教程: http://docs.aws.amazon.com /AmazonRDS/latest/UserGuide/USER_VPC.Scenarios.html 尤其需要編輯VPC安全組入站規則,以添加您的EC2實例所在的安全組的ID(或者如果不使用EC2,則使用IP2服務器要訪問RDS) – Baxny 2016-07-14 13:17:21