Error after database sync

Discussion in 'Developers' Forum' started by deeaspark, Feb 11, 2012.

  1. deeaspark

    deeaspark New Member

    it's a master - master replication ....

    My question: when i run a "create table" statement on one of the databases, is that table also created on the other table ?
    or just the table content (the inserted rows) are in sync ?
    and here is the error on one of the masters :

    120209 22:50:20 [ERROR] Slave SQL: Error 'Duplicate entry '174' for key 'PRIMARY'' on query. Default database: 'rent'. Query: 'INSERT INTO jobs(title, job_type_id, buyer_id, service_provider_id, price_low, price_high, status_id,
    VALUES("Test Polo Shirt 2", 2, 65, 64,
    "15.00", "50.00", '1208', now())', Error_code: 1062
    120209 22:50:20 [Warning] Slave: Field 'modified' doesn't have a default value Error_code: 1364
    120209 22:50:20 [Warning] Slave: Duplicate entry '174' for key 'PRIMARY' Error_code: 1062
    120209 22:50:20 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysqld-bin.000001' position 6096
    Last edited: Feb 11, 2012
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, the database is alsos created in the other database.

    You have a duplicate entry somewhere. Please check your database.

Share This Page