We're using Galera cluster and I'm running below statement to make a new table:
create table tab2 select distinct id , report from my_table ;
It runs for sometime and after that it fails/cancel with this error:
ERROR 1180 (HY000): Got error 5 during COMMIT
I searched for this error and found that if we set global variable binlog_row_image=minimal then the problem should have gone. However, such thing didn't happen in my case. I ran below and even after when I checked -it was at FULL binlog_row_image.
mysql> select @@binlog_row_image;
+--------------------+
| @@binlog_row_image |
+--------------------+
| FULL |
+--------------------+
1 row in set (0.00 sec)
mysql> SET GLOBAL binlog_row_image=minimal;
Query OK, 0 rows affected (0.00 sec)
And, since it didn't change even after that my new table creation query is failing. Any, other way of getting it done? I just need to create my new table the existing table.
Thanks in advance!