mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
38 lines
890 B
Text
38 lines
890 B
Text
-- source include/have_ndb.inc
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE `test` (
|
|
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
|
`t` VARCHAR( 10 ) NOT NULL
|
|
) ENGINE = ndbcluster;
|
|
|
|
create table test.db_temp as select * from mysql.db where user='';
|
|
delete from mysql.db where user='';
|
|
|
|
flush privileges;
|
|
|
|
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
|
|
|
|
connect (user1,localhost,user1,pass,*NO-ONE*);
|
|
|
|
disable_query_log;
|
|
disable_result_log;
|
|
let $i= 100;
|
|
while ($i)
|
|
{
|
|
select count(*) from information_schema.tables union all select count(*) from information_schema.tables union all select count(*) from information_schema.tables;
|
|
dec $i;
|
|
}
|
|
enable_query_log;
|
|
enable_result_log;
|
|
|
|
connect (root,localhost,root,,test);
|
|
connection root;
|
|
DROP TABLE `test`.`test`;
|
|
insert into mysql.db select * from test.db_temp;
|
|
drop table db_temp;
|
|
flush privileges;
|
|
|