Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17415

Error 1677, cannot start replication on newly imported sql dump.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.2.18
    • N/A
    • Replication
    • None
    • Debian Jessie

    Description

      Following a crash which affected our entire cluster (as a result of alter table), I am trying to set up a slave in order to recreate data cleanly and shift everything on new server.

      After making a dump from galera cluster (thus row based binlog)

       mysqldump -u root -p --master-data=1 --single-transaction --ignore-table=mysql.inventory --all-databases 
      

      I import it on new server, and start the replication.
      For some reason though, I am getting following error:

      *************************** 1. row ***************************
                     Slave_IO_State: Queueing master event to the relay log
                        Master_Host: 62.210.204.79
                        Master_User: replica
                        Master_Port: 3306
                      Connect_Retry: 60
                    Master_Log_File: mariadb-bin.000685
                Read_Master_Log_Pos: 647988717
                     Relay_Log_File: mysqld-relay-bin.000002
                      Relay_Log_Pos: 1032
              Relay_Master_Log_File: mariadb-bin.000678
                   Slave_IO_Running: Yes
                  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: 1677
                         Last_Error: Column 1 of table 'live.wishing_well' cannot be converted from type 'int' to type 'tinyint(1)'
                       Skip_Counter: 0
                Exec_Master_Log_Pos: 1063
                    Relay_Log_Space: 6899708323
                    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: 0
                      Last_IO_Error:
                     Last_SQL_Errno: 1677
                     Last_SQL_Error: Column 1 of table 'live.wishing_well' cannot be converted from type 'int' to type 'tinyint(1)'
        Replicate_Ignore_Server_Ids:
                   Master_Server_Id: 1
                     Master_SSL_Crl:
                 Master_SSL_Crlpath:
                         Using_Gtid: No
                        Gtid_IO_Pos:
            Replicate_Do_Domain_Ids:
        Replicate_Ignore_Domain_Ids:
                      Parallel_Mode: conservative
                          SQL_Delay: 0
                SQL_Remaining_Delay: NULL
            Slave_SQL_Running_State:
      1 row in set (0.02 sec)
      

      table structure:

       CREATE TABLE `wishing_well` (
        `weevil_id` int(10) unsigned NOT NULL,
        `advert_ball` tinyint(1) NOT NULL DEFAULT 0,
        `refresh_time` int(10) unsigned DEFAULT NULL,
        `free_ball` tinyint(1) unsigned NOT NULL,
        `prize_collected` tinyint(1) unsigned NOT NULL DEFAULT 0,
        PRIMARY KEY (`weevil_id`),
        CONSTRAINT `fk_wishing_well_weevil1` FOREIGN KEY (`weevil_id`) REFERENCES `weevil` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
      

      Mysql version, configs are the same on both servers, charset is the same...

      Any hint?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alekc Alexander Chernov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.