我有一个托pipe在Rackspace Cloud上的网站。 它运行Joomla 2.5,一些testing脚本和PHPMyAdmin 4.1.6。 Joomla运行在Rackspace Cloud托pipe的数据库。 主机是mysql50-[redacted].wc2.dfw1.stabletransit.com我能够把Joomla的设置,并把它们放在一个简单的PHP脚本,运行mysqli_connect和读取数据库。
但是,我无法在Joomla目录的子文件夹中获得PHPMyAdmin安装来连接。 我PHPMyAdmin的设置和它生成这个configuration文件:
$cfg['Servers'][$i]['verbose'] = 'description'; $cfg['Servers'][$i]['host'] = 'mysql50-[redacted].wc2.dfw1.stabletransit.com'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = ''; $cfg['Servers'][$i]['password'] = '';
没有其他修改PHPMyAdmin完成。
它似乎与Joomla使用的设置和testing脚本相匹配,但每次连接时,我都会收到#2002 Cannot log in to the MySQL server错误。 无论使用什么用户名/密码,我使用的主机名,还是使用的连接方法/types,都会发生此错误。 PHPMyAdmin的不同之处在于,Joomla和一个简单的mysqli_connect成功的地方连接失败了。
确保生成的configuration文件在您的根phpMyAdmin文件夹,以便它读取正确的文件。