2005-12-07 17:01:17 +03:00
|
|
|
drop database if exists mysqltest1;
|
2004-10-01 12:39:11 -07:00
|
|
|
create schema foo;
|
|
|
|
show create schema foo;
|
|
|
|
Database Create Database
|
|
|
|
foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */
|
|
|
|
show schemas;
|
|
|
|
Database
|
2004-12-10 12:07:11 +03:00
|
|
|
information_schema
|
2004-10-01 12:39:11 -07:00
|
|
|
foo
|
2008-04-02 10:06:36 +02:00
|
|
|
mtr
|
2004-10-01 12:39:11 -07:00
|
|
|
mysql
|
|
|
|
test
|
|
|
|
drop schema foo;
|
2010-06-26 19:36:00 +02:00
|
|
|
#
|
|
|
|
# Bug#54360 Deadlock DROP/ALTER/CREATE DATABASE with open HANDLER
|
|
|
|
#
|
|
|
|
CREATE DATABASE db1;
|
|
|
|
CREATE TABLE db1.t1 (a INT);
|
|
|
|
INSERT INTO db1.t1 VALUES (1), (2);
|
|
|
|
# Connection con1
|
|
|
|
HANDLER db1.t1 OPEN;
|
|
|
|
# Connection default
|
|
|
|
# Sending:
|
|
|
|
DROP DATABASE db1;
|
|
|
|
# Connection con2
|
|
|
|
# Waiting for 'DROP DATABASE db1' to sync in.
|
|
|
|
# Connection con1
|
|
|
|
CREATE DATABASE db2;
|
|
|
|
ALTER DATABASE db2 DEFAULT CHARACTER SET utf8;
|
|
|
|
DROP DATABASE db2;
|
|
|
|
# Connection default
|
|
|
|
# Reaping: DROP DATABASE db1
|