开发者

How can I use phpMyAdmin to connect with external database?

I'm currently using Wamp and phpmyadmin to test a website locally, but now I'd like to put it online. I have my URL, my FTP info and the database name and login info. However, I can't seem to change my wamp's config.inc.php file in such a way that this actually works.

I can select the second server name from my normal phpmyadmin page, but it just ends up with an error message saying "the connection has been reinitialis开发者_如何学Pythoned" and the phpmyadmin url is still the same.

Currently I've added this to my config file:

$i++;
$cfg['Servers'][$i]['verbose'] = 'sub.domain.be';
$cfg['Servers'][$i]['host'] = 'sub.domain.be';
$cfg['Servers'][$i]['port'] = '3306'; 
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password'; 

What am I doing wrong here?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜