Files
sysbench/tests/t/script_oltp_general_mysql.t
2018-07-17 00:29:51 +03:00

24 lines
764 B
Raku

$ . $SBTEST_INCDIR/mysql_common.sh
$ SB_EXTRA_ARGS=${SB_EXTRA_ARGS:-}
$ ARGS="oltp_read_write ${DB_DRIVER_ARGS} --verbosity=1 ${SB_EXTRA_ARGS}"
$ sysbench $ARGS --create-table-options="COMMENT='foo'" prepare
Creating table 'sbtest1'...
Inserting 10000 records into 'sbtest1'
Creating a secondary index on 'sbtest1'...
$ db_show_table sbtest1
*************************** 1. row ***************************
sbtest1
CREATE TABLE `sbtest1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`k` int(11) NOT NULL DEFAULT '0',
`c` char(120) NOT NULL DEFAULT '',
`pad` char(60) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `k_1` (`k`)
) ENGINE=InnoDB * COMMENT='foo' (glob)
$ sysbench $ARGS cleanup
Dropping table 'sbtest1'...