简体   繁体   中英

Remote MYSQL using phpmyadmin connection is very slow

First off the reason I am doing this is since I'm using shared hosting with HostGator they do not keep the phpmyadmin install up to date. Matter of face at the time of this post phpmyadmin reports -> "Version information: 3.5.5, latest stable version: 4.1.14" So it's lacking in a lot of bug fixes and improvements.

I went and got the latest and greatest version of phpmyadmin and installed it on my hosting. I followed HostGators instructions on whitelisting my IP as this is how they get around giving the database(s) remote access. I also opened port 3306 on my firewall.

When I connect is so slow! Getting the table structures I can go get coffee and it'll be just coming up.

$cfg['Servers'][$i]['verbose'] = 'HG FTSC';
$cfg['Servers'][$i]['host'] = 'localhost';
$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'] = 'cookie';
$cfg['Servers'][$i]['user'] = '**********_mgmt';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['only_db'] = array('**********_ftsc');
$cfg['Servers'][$i]['AllowRoot'] = false;

It shouldn't be slow if I'm doing this right on the actual server. But it is!

I appreciate the help!

  • Dave

OP has specified in the comments that the issue has been resolved. Just pasting this here so future users don't have to look through the comments (OP if you feel you'd rather post the answer yourself, please do so and accept that one as the answer).

OP said (minor changes for readability):

This has been solved! It's not a hosting issue or mine. HostGator intentionally slows the remote connection to databases on shared hosting, because people have taken advantage of it. Their suggestion was to do the reverse for testing, and host the database locally. Put the page on the hosted site and, obviously, when done either export the database and import it on the hosted site. You can also make the changes to the hosted sites database and change where it's pointed to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM