|
1 | 1 | # Random data generator for MySQL |
2 | 2 | [](https://travis-ci.org/Percona-Lab/mysql_random_data_load) |
3 | 3 |
|
4 | | -Many times in my job i need to generate random data for a specific table in order to reproduce an issue. |
| 4 | +Many times in my job I need to generate random data for a specific table in order to reproduce an issue. |
5 | 5 | After writing many random generators for every table, I decided to write a random data generator, able to get the table structure and generate random data for it. |
6 | 6 | Plase take into consideration that this is the first version and it doesn't support all field types yet! |
7 | 7 |
|
@@ -119,7 +119,7 @@ CREATE TABLE `test`.`t3` ( |
119 | 119 | ``` |
120 | 120 | To generate 100K random rows, just run: |
121 | 121 | ``` |
122 | | -random-data-load test t3 100000 --max-threads=8 --user=root --password=root |
| 122 | +mysql_random-data-load test t3 100000 --user=root --password=root |
123 | 123 | ``` |
124 | 124 | ``` |
125 | 125 | mysql> select * from t3 limit 1\G |
@@ -162,21 +162,18 @@ There are binaries available for each version for Linux and Darwin. You can find |
162 | 162 |
|
163 | 163 | https://github.com/Percona-Lab/mysql_random_data_load/releases |
164 | 164 |
|
165 | | -You can copy a link for the binary you want (in this case for 1.0.5), and use wget to download: |
166 | | - |
167 | | -``` |
168 | | -cd ~/bin/ |
169 | | -wget https://github.com/Percona-Lab/mysql_random_data_load/releases/download/0.1.5/mysql_random_data_load_linux_amd64 |
170 | | -chmod +x mysql_random_data_load_linux_amd64 |
171 | | -``` |
172 | | - |
173 | 165 | ## To do |
174 | 166 | - [ ] Add suport for all data types. |
175 | 167 | - [X] Add supporrt for foreign keys. |
176 | 168 | - [ ] Support config files to override default values/ranges. |
177 | 169 | - [ ] Support custom functions via LUA plugins. |
178 | 170 |
|
179 | | -## Versions history |
| 171 | +## Version history |
| 172 | + |
| 173 | +#### 0.1.8 |
| 174 | +- Fixed error for triggers created with MySQL 5.6 |
| 175 | +- Added Travis-CI |
| 176 | +- Code clean up |
180 | 177 |
|
181 | 178 | #### 0.1.7 |
182 | 179 | - Support for MySQL 8.0 |
|
0 commit comments