用于填充 MySQL 表的 PHP 脚本

2022-01-21 00:00:00 testing dataset php mysql test-data

有谁知道 script/class(最好是 PHP)会解析给定的 MySQL 表的结构,然后用 x 行数填充它 基于字段类型的随机测试数据?

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.

推荐答案

你所追求的将是一个数据生成器.

What you are after would be a data generator.

here 有一个可用的,我已将其添加为书签,但我还没有开始尝试.

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

相关文章