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

LVL 1
Phelms215Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johanntagleCommented:
Based on those two outputs it looks like replication is running okay.  "waiting for master..." means just that - it is waiting for an update to happen on the master.  Can you try to insert/update on the master and see if it gets replicated on the slave?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Phelms215Author Commented:
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
0
wesly_chenCommented:
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
...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.