summaryrefslogtreecommitdiff
path: root/mysql-test/main/drop-no_root.result
blob: 3e1f2fe2cf06fd0ed76be1dfd96e1da7cb5056e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

# --
# -- Bug#26704: Failing DROP DATABASE brings mysql-client out of sync.
# --

DROP DATABASE IF EXISTS mysql_test;

CREATE DATABASE mysql_test;
CREATE TABLE mysql_test.t1(c INT);
use mysql_test;

chmod 000 mysql_test/t1.frm

DROP DATABASE mysql_test;

SELECT DATABASE();
DATABASE()
mysql_test

rm -f mysql_test/t1.MYD mysql_test/t1.MYI
chmod 666 mysql_test/t1.frm
rm -f mysql_test/t1.frm

DROP DATABASE mysql_test;

use test;

# -- End of Bug#26704.