dbTalk Databases Forums  

Replication - Can't connect to replication server

comp.databases.mysql comp.databases.mysql


Discuss Replication - Can't connect to replication server in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
William Colls
 
Posts: n/a

Default Replication - Can't connect to replication server - 01-13-2012 , 08:48 AM






Master machine running Kubuntu 10.04, MySQL 5.1.41
Replication machine running Kubuntu 10.04, MySQL 5.1.41

Learning replication.

Attempting to set up replication of a small database. When I attempt to
start the slave i Get the error message:

ERROR 2003 (HY000) Can't connect to MySQL server on w.x.y.z (111)

from the slave machine, I can ping w.x.y.z.

I have tried to connect with several different users, but all return the
same error message.

Anything I look at says that the servers are running, correctly
configured, and ready to go.

So:
- what does the (111) at the end of the message tell me?
- What specific settings do I need to verify?
- What have I missed?

Thanks for your time.

Reply With Quote
  #2  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-13-2012 , 09:28 AM






William Colls wrote:
Quote:
Master machine running Kubuntu 10.04, MySQL 5.1.41
Replication machine running Kubuntu 10.04, MySQL 5.1.41

Learning replication.

Attempting to set up replication of a small database. When I attempt to
start the slave i Get the error message:

ERROR 2003 (HY000) Can't connect to MySQL server on w.x.y.z (111)

from the slave machine, I can ping w.x.y.z.

I have tried to connect with several different users, but all return the
same error message.

Anything I look at says that the servers are running, correctly
configured, and ready to go.
The above says otherwise :-)

I have found that on debian at least you need to reconfigure mysqld from
default to accept on other than the unix socket or the loopback interface.

I forget where the exact switch is, or what to do with it..mysqld.conf
probably.



Quote:
So:
- what does the (111) at the end of the message tell me?
- What specific settings do I need to verify?
- What have I missed?

Thanks for your time.

Reply With Quote
  #3  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-13-2012 , 09:30 AM



William Colls <william.colls (AT) rogers (DOT) com> wrote:
Quote:
Master machine running Kubuntu 10.04, MySQL 5.1.41
Replication machine running Kubuntu 10.04, MySQL 5.1.41

When I attempt to start the slave i Get the error message:

ERROR 2003 (HY000) Can't connect to MySQL server on w.x.y.z (111)

I can ping w.x.y.z.
Ping is not enough. The MySQL slave connects it's master
at TCP port 3306.

Quote:
So:
- what does the (111) at the end of the message tell me?
~ $perror 111
OS error code 111: Connection refused

Quote:
- What specific settings do I need to verify?
Check firewalls. Check MySQL GRANT on the master.
You must create a slave user there and allow connections
from the slave IP (or name if you have working DNS)

Quote:
- What have I missed?
You can test connection with the normal mysql command line
client. Just start it on the slave and try to connect to
the master, using slave user and password.


XL

Reply With Quote
  #4  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-13-2012 , 09:44 AM



On Jan 13, 3:30*pm, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote:
Quote:
Ping is not enough. The MySQL slave connects it's master
at TCP port 3306.
Or even "its master"

Reply With Quote
  #5  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-13-2012 , 10:48 AM



Captain Paralytic wrote:
Quote:
On Jan 13, 3:30 pm, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote:
Ping is not enough. The MySQL slave connects it's master
at TCP port 3306.
Or even "its master"
Oh no. The apostrophe wars have strayed again,..

Reply With Quote
  #6  
Old   
Luuk
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-13-2012 , 01:46 PM



On 13-01-2012 16:28, The Natural Philosopher wrote:
Quote:
William Colls wrote:

Master machine running Kubuntu 10.04, MySQL 5.1.41
Replication machine running Kubuntu 10.04, MySQL 5.1.41

Learning replication.

Attempting to set up replication of a small database. When I attempt
to start the slave i Get the error message:

ERROR 2003 (HY000) Can't connect to MySQL server on w.x.y.z (111)

from the slave machine, I can ping w.x.y.z.

I have tried to connect with several different users, but all return
the same error message.

Anything I look at says that the servers are running, correctly
configured, and ready to go.

The above says otherwise :-)

I have found that on debian at least you need to reconfigure mysqld from
default to accept on other than the unix socket or the loopback interface.

I forget where the exact switch is, or what to do with it..mysqld.conf
probably.
It's skip-networking

http://dev.mysql.com/doc/refman/5.1/...kip-networking

So, in your my.cnf you should NOT have a line:
skip-networking

Because, if you have that, MySQL wont listen on port 3306

You can verify that by doing this (on a linux prompt):
# netstat -antp | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3522/mysqld



--
Luuk

Reply With Quote
  #7  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: Replication - Can't connect to replication server - 01-16-2012 , 09:17 AM



On Jan 13, 4:48*pm, The Natural Philosopher <t... (AT) invalid (DOT) invalid>
wrote:
Quote:
Captain Paralytic wrote:
On Jan 13, 3:30 pm, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote:
Ping is not enough. The MySQL slave connects it's master
at TCP port 3306.
Or even "its master"

Oh no. The apostrophe wars have strayed again,..
Might be the one that Waterstones threw away!

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.