Hi,
Im following this tutorial
http://www.howtoforge.com/installing...th-ispconfig-3
Ive followed up to foillowing steps:
scp -pr /var/lib/mysql/*
root@server2.example.tld:/var/lib/mysql/
scp -pr /etc/mysql/debian.cnf
root@server2.example.tld:/etc/mysql/debian.cnf
Now we start MySQL on the master server again:
/etc/init.d/mysql start
Log into the MySQL shell as root user...
mysql -u root -p
... and execute this command in the MySQL shell...
SHOW MASTER STATUS;
... to get the MySQL master status:
mysql> SHOW MASTER STATUS;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000005 | 106 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
after
Show SLave Status \g
I get ....
SHOW SLAVE STATUS \G
*************************** 1. row ***************************
Slave_IO_State: Connecting to master
Master_Host: xxx.xxx.xxx.60
Master_User: slaveuser
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000005
Read_Master_Log_Pos: 106
Relay_Log_File: mysqld-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql-bin.000005
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 106
Relay_Log_Space: 106
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 2013
Last_IO_Error: error connecting to master 'slaveuser@xxx.xxx.xxx.60:3306' - retry-time: 60 retries: 86400
Last_SQL_Errno: 0
Last_SQL_Error:
SO slave IO is not running :-(
When I tried the next part :
On server 2:
Log into the MySQL shell as root user...
mysql -u root -p
I get this error message :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I think its because the tutorial said to switch off mysql on server 2 in a previous step, and never mentions to restart it. As if i start it again, it lets me log in. If so, Ive a feeling that server 2 should have either not been turned off, or turned on at some point before and possibly cause of previous errors. Ive been over and over it wit a fresh pair of eyes 5 times hence Master_Log_File: mysql-bin.000005
Is anyone able to point me in the right direction? I think Ive missed a really simple obvious step, but cant see where. Possibly one missing from howto? DO I need to reformat and start from scratch or can these be saved ?
Recent comments
8 hours 16 min ago
11 hours 12 min ago
12 hours 26 min ago
13 hours 49 min ago
15 hours 27 min ago
16 hours 56 min ago
18 hours 9 min ago
1 day 10 hours ago
1 day 10 hours ago
1 day 14 hours ago