Make sure to remova any old files related to mysql.ndb_apply_status
before trying to creeate the table
This commit is contained in:
parent
bf70ac3161
commit
8e1283744f
@ -12,6 +12,14 @@
|
|||||||
|
|
||||||
-- connection slave
|
-- connection slave
|
||||||
-- source include/have_innodb.inc
|
-- source include/have_innodb.inc
|
||||||
|
|
||||||
|
# Remove any old ndb_apply_status from slaves datadir
|
||||||
|
let $datadir= `SELECT @@datadir`;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.frm;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.ndb;
|
||||||
|
|
||||||
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
||||||
CREATE TABLE mysql.ndb_apply_status
|
CREATE TABLE mysql.ndb_apply_status
|
||||||
( server_id INT UNSIGNED NOT NULL,
|
( server_id INT UNSIGNED NOT NULL,
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
-- source include/master-slave.inc
|
-- source include/master-slave.inc
|
||||||
|
|
||||||
-- connection slave
|
-- connection slave
|
||||||
|
|
||||||
|
# Remove any old ndb_apply_status from slaves datadir
|
||||||
|
let $datadir= `SELECT @@datadir`;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.frm;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.ndb;
|
||||||
|
|
||||||
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
||||||
CREATE TABLE mysql.ndb_apply_status
|
CREATE TABLE mysql.ndb_apply_status
|
||||||
( server_id INT UNSIGNED NOT NULL,
|
( server_id INT UNSIGNED NOT NULL,
|
||||||
|
@ -17,6 +17,14 @@ SET storage_engine=ndb;
|
|||||||
--echo === NDB -> MYISAM ===
|
--echo === NDB -> MYISAM ===
|
||||||
--echo
|
--echo
|
||||||
connection slave;
|
connection slave;
|
||||||
|
|
||||||
|
# Remove any old ndb_apply_status from slaves datadir
|
||||||
|
let $datadir= `SELECT @@datadir`;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.frm;
|
||||||
|
--error 0,1
|
||||||
|
remove_file $datadir/mysql/ndb_apply_status.ndb;
|
||||||
|
|
||||||
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
||||||
CREATE TABLE mysql.ndb_apply_status
|
CREATE TABLE mysql.ndb_apply_status
|
||||||
( server_id INT UNSIGNED NOT NULL,
|
( server_id INT UNSIGNED NOT NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user