[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mysql réplication



Le vendredi 2 mars 2007 15:38, Marc a écrit :
>
> Quelle version de MySQL?
> Il me semble que ça ne fonctionne bien qu'à partir d'une 4 et quelque !


Maître : mysql-server                      4.1.15-1 (bah oui ça date un peu)
Esclave : mysql-server                      5.0.32-3 (install récente)

>
> Sinon la réplication MySQL fonctionne plutôt bien et est très simple à
> mettre en oeuvre.

je dois être très nul ;-)

>
>
> Dis en + et j'essaie de retrouver le my.cnf d'un client chez qui j'ai
> mis ça en place.


sur le pc master : show master status;
+------------------+----------+--------------+------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000146 |   391851 |              |                  |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)

sur le pc esclave 
show slave status \G;
*************************** 1. row ***************************
             Slave_IO_State:
                Master_Host: 192.168.1.33
                [...]
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: 344517
        Read_Master_Log_Pos: 4
             Relay_Log_File: primergy-relay-bin.000001
              Relay_Log_Pos: 4
      Relay_Master_Log_File: 344517
           Slave_IO_Running: No
          Slave_SQL_Running: No
            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: 4
            Relay_Log_Space: 98
            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
1 row in set (0.00 sec)



Reply to: