views:

992

answers:

2

Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and thought I would check before writing one myself.

+8  A: 

What you are after would be a data generator.

There is one available here which i had bookmarked but i haven't got around to trying it yet.

Jarod Elliott
Very nice - just what I was looking for
Tim Gradwell
+1  A: 

@Jarod Elliott:

Worked great for what I needed. Only 100 rows can be generated for free, but you can also download and install locally and generate whatever amount you want, or pay a fee and run unlimited rows on their servers.

Swish