Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 22, 2015 8:04 am 
Offline
Newbie

Joined: Wed Jul 22, 2015 7:54 am
Posts: 4
both of them have a private ip.
I set my hosts files as the guides say in both servers (php server and mysql server)
Code:

127.0.0.1       localhost
127.0.1.1       ubuntu
**** database1.domain.net database1
127.0.0.1 localhost.localdomain localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
2a01:**** database1.localhost.net database1



i set in mysql config(instead of 'databse.server.private.ip' I have my private ip address)
Code:
bind-address      = databse.server.private.ip


restart both linodes just to make sure, also make sure both of them have Auto-configure Networking turn on

mysql from my php server just cant connect its say

Code:
SQLSTATE[HY000] [2003] Can't connect to MySQL server on '***.****.****'


Please I will take any advice as the guide on linode is from 2011 and deprecated ( https://www.linode.com/docs/databases/m ... sql-server )


Last edited by boynet on Sun Aug 16, 2015 4:25 pm, edited 1 time in total.

Top
   
PostPosted: Wed Jul 22, 2015 11:08 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What are the contents of your network configuration file? Can you ping the private IPs from the servers?

_________________
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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


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