Link to home
Start Free TrialLog in
Avatar of Phelms215
Phelms215

asked on

Mysql Replication

Hello,

So I got my two mysql servers to replicate, well not really.. but I set them up and no errors are showing HOWEVER the replication isn't actually happening.. I noticed Slave_IO_State: Waiting for master to send event .. I tried to stop and restart is there anything else I can check to see why its not replicating.. neither log file shows anything obvious..

I also wanted to mention that these are both CPanel servers.


*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: HOSTONE
                  Master_User: THEUSERNAME
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000004
          Read_Master_Log_Pos: 23584
               Relay_Log_File: cloud1-relay-bin.000003
                Relay_Log_Pos: 251
        Relay_Master_Log_File: mysql-bin.000004
             Slave_IO_Running: Yes
            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: 23584
              Relay_Log_Space: 22808
              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: 0
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
1 row in set (0.00 sec)

Open in new window


 SHOW MASTER STATUS;
+------------------+----------+--------------+------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000004 |    23584 |              |                  |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of johanntagle
johanntagle
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Phelms215
Phelms215

ASKER

I found out why it wasn't working.. I was expecting it to replicate the changes made before the START SLAVE; was done but obviously that didnt work after further testing everything is working
check this thread:
http://forums.mysql.com/read.php?26,89564,90021#msg-90021

Check the replication account (defined in /etc/my.cnf, "master-user = XXX"),
Make sure that user have permission from remote access.
(select * from mysql.user\G
....
Host: %    <=== allow from any remote host
User: XXX
...