mysql >  show slave status\G; 结果如下:请各位高手看一下是什么问题啊         
   Slave_IO_State: Connecting to master
                  Master_Host: 192.168.24.202
                  Master_User: s_database
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000007
          Read_Master_Log_Pos: 106
               Relay_Log_File: mysqld-relay-bin.000001
                Relay_Log_Pos: 4
        Relay_Master_Log_File: mysql-bin.000007
             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: 1045
                Last_IO_Error: error connecting to master '[email protected]:3306' - retry-time: 60  retries: 86400
               Last_SQL_Errno: 0
               Last_SQL_Error: 
1 row in set (0.00 sec)ERROR: 
No query specified

解决方案 »

  1.   

     主库上:
    mysql > show master status;File             | Position | Binlog_Do_DB  | Binlog_Ignore_DB |
    +------------------+----------+---------------+------------------+
    | mysql-bin.000007 |      106 | system_manage |               
      

  2.   

    connecting to master '[email protected]:3306' - retry-time: 60 retries: 86400
    连不上MASTER了,网络或者账号有问题。
      

  3.   

    还是我自己解决了,原来是mysql连接错了,我一直在从库上连接着主库进行操作的,怪不得!
      

  4.   

    Slave_IO_Running: No
      这种IO问题一般是连接不上,账号连接错误或者连接不上造成的。
      

  5.   

    主要分两种错误
    主从设置/连接错误
    同步数据错误设置问题出现在第一次
    io一般是连接错误
    pos不一致,sql-no一般是同步数据错误,键值冲突
      

  6.   


    恩,通常确实是如此的,而且error日志里面都会详细记载到的。