Skip to content

Instantly share code, notes, and snippets.

@fipar
Created September 9, 2013 17:20
Show Gist options
  • Save fipar/6498750 to your computer and use it in GitHub Desktop.
Save fipar/6498750 to your computer and use it in GitHub Desktop.
Create many databases and tables for innodb_file_per_table crash recovery slowness test
for i in $(seq 40000); do mysql -e "create database test_$i"; for j in $(seq 250); do mysql test_$i -e "create table test_$j (id int not null auto_increment primary key) engine=innodb; insert into test_$j values (null),(null),(null);"; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment