Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kedarvj/mysql-random-data-generator
This is the easiest MySQL random test data generator tool. Load the procedure and execute to auto detect column types and load data.
https://github.com/kedarvj/mysql-random-data-generator
data dataset dummy-data dummy-data-generator mysql procedure random-generation testdata testdatabuilder
Last synced: 17 days ago
JSON representation
This is the easiest MySQL random test data generator tool. Load the procedure and execute to auto detect column types and load data.
- Host: GitHub
- URL: https://github.com/kedarvj/mysql-random-data-generator
- Owner: kedarvj
- License: mit
- Created: 2015-04-18T07:53:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T12:28:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T06:17:53.540Z (about 1 month ago)
- Topics: data, dataset, dummy-data, dummy-data-generator, mysql, procedure, random-generation, testdata, testdatabuilder
- Homepage: http://kedar.nitty-witty.com/blog
- Size: 28.3 KB
- Stars: 149
- Watchers: 7
- Forks: 44
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# mysql-random-data-generator
This is the easiest MySQL Random Data Generator tool. Load the procedure and execute to auto detect column types and load data in it.# Usage:
1) Download random data generator (populate.sql and populate_fk.sql) from website or git.
- http://kedar.nitty-witty.com/blog/generate-random-test-data-for-mysql-using-routines2) Load it to mysql
```
mysql -uUSER -p DBNAME < populate.sql
mysql -uUSER -p DBNAME < populate_fk.sql
```3) Use:
```
mysql>use DBNAMEmysql>call populate('sakila','film',100,'N');
mysql>call populate_fk('sakila','child_table',100,'N');
```- Parameters are: `database-name`, `table-name`, `number-of-records`, `debug-mode`
- Setting `debug-mode` as `Y` will print all the insert statements that are being executed.