Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Dec 06, 2012 8:06 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:45 am
Posts: 60
Website: http://anderssonweb.se
Location: Puerto Galera, Philippines
Hi,

I've followed this guide:
http://library.linode.com/databases/mys ... -etc-hosts

I've got two Linodes (in the same data center) and followed each step in the guide. However, I'm unable to connect to the MySQL-Linode from my App-Linode. I'm able to ping from "foo.app1" to "foo.mysql1" and vice versa, but when I'm trying to connect to MySQL I'm getting:
Code:
ERROR 2003 (HY000): Can't connect to MySQL server on 'foo.mysql1' (110)


MySQL is working on the MySQL-Linode though when I'm connecting using mysql -h localhost -u root -p.

I have no idea what's going on, nothing in the logs so I'm a bit stuck here. Thanks!


Top
   
PostPosted: Thu Dec 06, 2012 8:11 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You're sure you did the bind-address part, and restarted mysql after doing it? You're sure you don't have any sort of firewall rules that might be blocking the connection?


Top
   
PostPosted: Thu Dec 06, 2012 8:52 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:45 am
Posts: 60
Website: http://anderssonweb.se
Location: Puerto Galera, Philippines
Yes! It's exactly as the guide tells me: (/etc/mysql/my.cnf)
Code:
bind-address = foo.mysql1


And restarted...


Top
   
PostPosted: Fri Dec 07, 2012 5:25 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You should use your internal ip address for bind address not foo.mysql1

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Fri Dec 07, 2012 7:21 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:45 am
Posts: 60
Website: http://anderssonweb.se
Location: Puerto Galera, Philippines
Thanks! It worked well! Also, the connection was locked by CSF.. :) Wasn't thinking about that, so after I added the exception in the firewall and changed to the servers' ip it works fine.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group