Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-09, 19:04
BOD Member
 
Join Date: May 2009
Posts: 49
Default Unable to connect to remote MySQL

Hey, guys. I've got a problem I hope you could help me with. I've been trying to connect to my MySQL database using SQLyog so I can manage it remotely. However, I keep getting an error that says "Can't connect to MySQL server". I've checked and made sure that all the settings (mysql server, username and password, etc.) are correct and they are, but I just can't seem to connect to my database.

Is there anything I could do to fix this?
Reply With Quote
  #2 (permalink)  
Old 06-21-09, 15:53
BOD Member
 
Join Date: May 2009
Posts: 85
Default

Quote:
Originally Posted by iamsam View Post
Hey, guys. I've got a problem I hope you could help me with. I've been trying to connect to my MySQL database using SQLyog so I can manage it remotely. However, I keep getting an error that says "Can't connect to MySQL server". I've checked and made sure that all the settings (mysql server, username and password, etc.) are correct and they are, but I just can't seem to connect to my database.

Is there anything I could do to fix this?
Make sure external connections are allowed. Sometimes its set so only localhost can connect.

If that is the case you have two options.

1) Change the setting to allow external connections or at least connections from your IP

2) Connect through SSH (I believe SQLyog offers this)

The other possibility is your firewall if you have one.
__________________
Jeremy J

* Bodhost VPS Linux Account Holder
* Network Information Systems Professional
Reply With Quote
  #3 (permalink)  
Old 06-21-09, 16:57
BOD Member
 
Join Date: May 2009
Posts: 49
Default

Thanks for your help, Jeremy! Looks like connecting through SSH did it. SQLyog only offers the feature in their premium editions (I think) and not in the free one, so I went ahead and uninstalled SQLyog and then installed Navicat. The SSH tunneling option in Navicat worked wonderfully.

Looks like it's goodbye SQLyog, hello Navicat!
Reply With Quote
  #4 (permalink)  
Old 06-21-09, 18:50
BOD Member
 
Join Date: May 2009
Posts: 85
Default

Quote:
Originally Posted by iamsam View Post
Thanks for your help, Jeremy! Looks like connecting through SSH did it. SQLyog only offers the feature in their premium editions (I think) and not in the free one, so I went ahead and uninstalled SQLyog and then installed Navicat. The SSH tunneling option in Navicat worked wonderfully.

Looks like it's goodbye SQLyog, hello Navicat!
Navicat is what I use

Like I said though, if you go in and allow external connections in the mysql config you wont have to use SSH. Although, honestly I think its better to use ssh for obvious reasons.
__________________
Jeremy J

* Bodhost VPS Linux Account Holder
* Network Information Systems Professional
Reply With Quote
  #5 (permalink)  
Old 06-21-09, 19:23
BOD Member
 
Join Date: May 2009
Posts: 49
Default

I did allow external connections, but it just wouldn't connect, not even in Navicat. It was set to allow %, which should allow all IPs, I believe (I'll have to tweak that later to only my IP range). Strange that I could connect via SSH, though, but like you said, it's better that way.

Thanks again!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 10:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.