mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
68a6705ed1
1. DROP DATABASE should use ha_discover_table_names(), not look at .frm files. 2. filename_to_tablename() also encodes temp file names #sql- -> #mysql50##sql 3. no special treatment for #sql- files, no TABLE_LIST::internal_tmp_table 4. discover also table file names, that start from #
33 lines
888 B
Text
33 lines
888 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
drop database if exists mysqltest1;
|
|
create database mysqltest1;
|
|
create table mysqltest1.t1 (n int);
|
|
insert into mysqltest1.t1 values (1);
|
|
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
|
create table mysqltest1.t2 (n int);
|
|
create table mysqltest1.t3 (n int);
|
|
drop database mysqltest1;
|
|
ERROR HY000: Error dropping database (can't rmdir './mysqltest1', errno: 39 "Directory not empty")
|
|
use mysqltest1;
|
|
show tables;
|
|
Tables_in_mysqltest1
|
|
drop database mysqltest1;
|
|
ERROR HY000: Error dropping database (can't rmdir './mysqltest1', errno: 39 "Directory not empty")
|
|
use mysqltest1;
|
|
show tables;
|
|
Tables_in_mysqltest1
|
|
use test;
|
|
create table t1 (n int);
|
|
insert into t1 values (1234);
|
|
use mysqltest1;
|
|
show tables;
|
|
Tables_in_mysqltest1
|
|
use test;
|
|
select * from t1;
|
|
n
|
|
1234
|
|
use test;
|
|
drop table t1;
|
|
drop database mysqltest1;
|
|
include/rpl_end.inc
|