2005-12-25 00:41:40 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-02 01:40:02 +01:00
|
|
|
select * from t1;
|
2005-12-25 00:41:40 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2005-12-25 11:03:53 +01:00
|
|
|
select * from t1;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2005-12-25 11:03:53 +01:00
|
|
|
select * from t1;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
|
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
2006-01-12 21:27:25 +01:00
|
|
|
select * from t1;
|
2005-12-25 11:03:53 +01:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
2005-12-25 11:03:53 +01:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
2005-12-25 00:41:40 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
|
|
|
select * from t1;
|
|
|
|
select * from t2;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
2005-12-25 00:41:40 +01:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
2006-01-02 01:40:02 +01:00
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
2005-12-25 00:41:40 +01:00
|
|
|
select * from t1;
|
|
|
|
select * from t2;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
2007-03-26 11:24:49 +02:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
2007-03-26 11:24:49 +02:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
|
|
|
SHOW TABLES;
|
|
|
|
select * from t1;
|
2007-08-09 22:01:29 +02:00
|
|
|
select * from t2;
|
2007-03-26 11:24:49 +02:00
|
|
|
SHOW TABLES;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
2007-03-26 11:24:49 +02:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
|
|
|
SHOW TABLES;
|
|
|
|
select * from t1;
|
2007-08-09 22:01:29 +02:00
|
|
|
select * from t2;
|
2007-03-26 11:24:49 +02:00
|
|
|
SHOW TABLES;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
2007-06-16 02:22:57 +02:00
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
2007-06-16 02:22:57 +02:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
|
|
|
SET AUTOCOMMIT=0;
|
|
|
|
SHOW TABLES;
|
2007-10-19 00:08:27 +02:00
|
|
|
SET AUTOCOMMIT=0;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
COMMIT;
|
|
|
|
SHOW TABLES;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
|
|
CREATE SCHEMA `mysqlslap`;
|
|
|
|
use mysqlslap;
|
2009-09-25 16:38:02 +02:00
|
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
2007-06-16 02:22:57 +02:00
|
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
|
|
insert into t2 values ('test', 'test2');
|
|
|
|
SET AUTOCOMMIT=0;
|
|
|
|
SHOW TABLES;
|
2007-10-19 00:08:27 +02:00
|
|
|
SET AUTOCOMMIT=0;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
select * from t1;
|
2007-10-19 00:08:27 +02:00
|
|
|
COMMIT;
|
2007-06-16 02:22:57 +02:00
|
|
|
select * from t2;
|
|
|
|
COMMIT;
|
|
|
|
COMMIT;
|
|
|
|
SHOW TABLES;
|
|
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
2007-09-17 18:39:07 +02:00
|
|
|
#
|
|
|
|
# Bug #29985: mysqlslap -- improper handling of resultsets in SPROCs
|
|
|
|
#
|
|
|
|
DROP PROCEDURE IF EXISTS p1;
|
|
|
|
CREATE PROCEDURE p1() SELECT 1;
|
2007-09-27 10:15:15 +02:00
|
|
|
DROP PROCEDURE p1;
|
2011-04-08 08:52:44 +02:00
|
|
|
#
|
|
|
|
# Bug #11765157 - 58090: mysqlslap drops schema specified in
|
|
|
|
# create_schema if auto-generate-sql also set.
|
|
|
|
#
|
|
|
|
# 'bug58090' database should not be present.
|
|
|
|
SHOW DATABASES;
|
|
|
|
Database
|
|
|
|
information_schema
|
|
|
|
mtr
|
|
|
|
mysql
|
2011-04-08 09:04:54 +02:00
|
|
|
performance_schema
|
2011-04-08 08:52:44 +02:00
|
|
|
test
|
|
|
|
# 'bug58090' database should be present.
|
|
|
|
SHOW DATABASES;
|
|
|
|
Database
|
|
|
|
bug58090
|
2013-04-07 17:17:25 +02:00
|
|
|
information_schema
|
2011-04-08 08:52:44 +02:00
|
|
|
mtr
|
|
|
|
mysql
|
2011-04-08 09:04:54 +02:00
|
|
|
performance_schema
|
2011-04-08 08:52:44 +02:00
|
|
|
test
|
|
|
|
DROP DATABASE bug58090;
|
2012-04-09 11:21:46 +02:00
|
|
|
#
|
|
|
|
# Bug #11766072 - 59107: MYSQLSLAP CRASHES IF STARTED WITH NO ARGUMENTS ON WINDOWS
|
|
|
|
#
|
|
|
|
Benchmark
|
|
|
|
Average number of seconds to run all queries: TIME seconds
|
|
|
|
Minimum number of seconds to run all queries: TIME seconds
|
|
|
|
Maximum number of seconds to run all queries: TIME seconds
|
|
|
|
Number of clients running queries: 1
|
|
|
|
Average number of queries per client: 0
|
|
|
|
|
2013-09-17 16:51:14 +02:00
|
|
|
#
|
|
|
|
# MDEV-4684 - Enhancement request: --init-command support for mysqlslap
|
|
|
|
#
|
|
|
|
DROP TABLE t1;
|
2018-04-17 21:00:15 +02:00
|
|
|
#
|
|
|
|
# Bug MDEV-15789 (Upstream: #80329): MYSQLSLAP OPTIONS --AUTO-GENERATE-SQL-GUID-PRIMARY and --AUTO-GENERATE-SQL-SECONDARY-INDEXES DONT WORK
|
|
|
|
#
|