mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
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
5eb114bb4a
commit
4a5a4011c3
3 changed files with 24 additions and 0 deletions
|
@ -12,6 +12,14 @@
|
|||
|
||||
-- connection slave
|
||||
-- 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';
|
||||
CREATE TABLE mysql.ndb_apply_status
|
||||
( server_id INT UNSIGNED NOT NULL,
|
||||
|
|
|
@ -11,6 +11,14 @@
|
|||
-- source include/master-slave.inc
|
||||
|
||||
-- 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';
|
||||
CREATE TABLE mysql.ndb_apply_status
|
||||
( server_id INT UNSIGNED NOT NULL,
|
||||
|
|
|
@ -17,6 +17,14 @@ SET storage_engine=ndb;
|
|||
--echo === NDB -> MYISAM ===
|
||||
--echo
|
||||
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';
|
||||
CREATE TABLE mysql.ndb_apply_status
|
||||
( server_id INT UNSIGNED NOT NULL,
|
||||
|
|
Loading…
Add table
Reference in a new issue