--- [root@mariadb mysql]# mysql --version mysql Ver 15.1 Distrib 10.0.20-MariaDB, for Linux (x86_64) using readline 5.1 MariaDB [(none)]> SELECT @@global.binlog_format, @@session.binlog_format; +------------------------+-------------------------+ | @@global.binlog_format | @@session.binlog_format | +------------------------+-------------------------+ | MIXED | MIXED | +------------------------+-------------------------+ 1 row in set (0.00 sec) MariaDB [(none)]> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed MariaDB [test]> create temporary table ptest1(i int); Query OK, 0 rows affected (0.02 sec) MariaDB [test]> select current_user(); +----------------+ | current_user() | +----------------+ | root@localhost | +----------------+ 1 row in set (0.00 sec) MariaDB [test]> create temporary table ptest2(i int); Query OK, 0 rows affected (0.00 sec) MariaDB [test]> create index i on ptest2(i); Query OK, 0 rows affected (0.02 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [test]> exit Bye [root@mariadb mysql]# mysqlbinlog -vv mysql-bin.000004 | grep ptest create temporary table ptest1(i int) create index i on ptest2(i) DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ptest2`,`ptest1` MariaDB [(none)]> SHOW SLAVE STATUS\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 192.168.3.100 Master_User: repl Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000004 Read_Master_Log_Pos: 738 Relay_Log_File: mariadb-relay-bin.000010 Relay_Log_Pos: 740 Relay_Master_Log_File: mysql-bin.000004 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: 1146 Last_Error: Error 'Table 'test.ptest2' doesn't exist' on query. Default database: 'test'. Query: 'create index i on ptest2(i)' Skip_Counter: 0 Exec_Master_Log_Pos: 449 Relay_Log_Space: 1491 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: 1146 Last_SQL_Error: Error 'Table 'test.ptest2' doesn't exist' on query. Default database: 'test'. Query: 'create index i on ptest2(i)' Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_SSL_Crl: Master_SSL_Crlpath: Using_Gtid: No Gtid_IO_Pos: 1 row in set (0.00 sec)