@@ -45,7 +45,7 @@ This is an early stage project.
45
45
The program can detect if a field accepts NULLs and if it does, it will generate NULLs ramdomly (~ 10 % of the values).
46
46
47
47
## Usage
48
- ` random-data-generator <database> <table> <number of rows> [options...]`
48
+ ` mysql_random_data_load <database> <table> <number of rows> [options...]`
49
49
50
50
## Options
51
51
| Option| Description|
@@ -66,7 +66,7 @@ If a field has Foreign Keys constraints, `random-data-load` will get up to `--ma
66
66
The number of samples to get follows this rules:
67
67
** 1.** Get the aproximate number of rows in the referenced table using the ` rows ` field in:
68
68
```
69
- EXPLAIN COUNT(*) FROM <referenced schema>.<referenced table>
69
+ EXPLAIN SELECT COUNT(*) FROM <referenced schema>.<referenced table>
70
70
```
71
71
** 1.1** If the number of rows is less than ` max-fk-samples ` , all rows are retrieved from the referenced table using this query:
72
72
```
@@ -153,6 +153,20 @@ tcol28: 6.12
153
153
1 row in set (0.00 sec)
154
154
```
155
155
156
+ ## How to download the precompiled binaries
157
+
158
+ There are binaries available for each version for Linux and Darwin. You can find compiled binaries for each version in the releases tab:
159
+
160
+ https://github.com/Percona-Lab/mysql_random_data_load/releases
161
+
162
+ You can copy a link for the binary you want (in this case for 1.0.5), and use wget to download:
163
+
164
+ ```
165
+ cd ~/bin/
166
+ wget https://github.com/Percona-Lab/mysql_random_data_load/releases/download/0.1.5/mysql_random_data_load_linux_amd64
167
+ chmod +x mysql_random_data_load_linux_amd64
168
+ ```
169
+
156
170
## To do
157
171
- [ ] Add suport for all data types.
158
172
- [X] Add supporrt for foreign keys.
0 commit comments