Current Path : /usr/opt/mysql57/mysql-test/suite/ndb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/ndb/r/ndb_discover_db.result |
drop database if exists discover_db; drop database if exists discover_db_2; create database discover_db; create table discover_db.t1 (a int key, b int) engine ndb; create database discover_db_2; alter database discover_db_2 character set binary; create table discover_db_2.t1 (a int key, b int) engine ndb; show create database discover_db; Database Create Database discover_db CREATE DATABASE `discover_db` /*!40100 DEFAULT CHARACTER SET latin1 */ show create database discover_db_2; Database Create Database discover_db_2 CREATE DATABASE `discover_db_2` /*!40100 DEFAULT CHARACTER SET binary */ reset master; insert into discover_db.t1 values (1,1); include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info mysqld-bin.000001 # Query # # BEGIN mysqld-bin.000001 # Table_map # # table_id: # (discover_db.t1) mysqld-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status) mysqld-bin.000001 # Write_rows # # table_id: # mysqld-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F mysqld-bin.000001 # Query # # COMMIT reset master; insert into discover_db_2.t1 values (1,1); include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info mysqld-bin.000001 # Query # # BEGIN mysqld-bin.000001 # Table_map # # table_id: # (discover_db_2.t1) mysqld-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status) mysqld-bin.000001 # Write_rows # # table_id: # mysqld-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F mysqld-bin.000001 # Query # # COMMIT Deleting table t1 metadata files and discover_db directory from fs. Deleting table t1 metadata files and discover_db directory from fs. flush tables; Attempt to access table should get error select * from discover_db.t1; ERROR 42S02: Table 'discover_db.t1' doesn't exist Attempt to access table after database created should be ok create database discover_db; select * from discover_db.t1; a b 1 1 drop database discover_db; drop database discover_db_2;