How to generate random data to test database performance?

I created a test table in MySQL and would like to insert 10 million rows with randomly generated data. How to make this random generation process? Is there any predefined method in MySQL or is there a quick query we can build to do this job?

Thanks for any help.

+3
source share
4 answers

In MySQL forge: RandomDataGenerator :

The random data generator allows you to create harsh size tables containing a harsh combination of columns filled with random data.

+7
source

:

call procedurename('DATABASE','TABLE',1000,'');  

1000 .

.

+1

generatedata.com, . -, , GitHub .

databasetestdata.com. customizable generatedata.com, . ( ).

I would recommend downloading the data in CSV format and using it MySQL LOAD DATA INFILEto import data into your database.

0
source

Source: https://habr.com/ru/post/1734643/


All Articles