-
Notifications
You must be signed in to change notification settings - Fork 2
Examples MySQL
Rainer Stötter edited this page Apr 14, 2017
·
9 revisions
Before you can use the examples you have to have installed the fitting PHP libraries ( Install-pdo_mysql )
This script file runs against a MYSQL database and creates relational test data.
Use the program "mysql" in order to execute the SQL commands.
./mk-sql-data.php --config examples/mk-sql-data-01.cmd
mysql -u db2phpsite -pdb2phpsite < output/random-data-mysql.sql
This script file runs against a MYSQL database and creates relational test data.
Use the program "mysql" in order to execute the SQL commands.
./mk-sql-data.php --config examples/mk-sql-data-02-mysql.cmd
mysql -u db2phpsite -pdb2phpsite db2phpsite< output/random-fk-mysql.sql
This script file runs against an MySQL database with the PDO interface and creates relational test data.
Use the program "mysql" in order to execute the SQL commands.
./mk-sql-data.php --config examples/mk-sql-data-02-pdo-mysql.cmd
mysql -u db2phpsite -pdb2phpsite db2phpsite < output/random-fk-mysql-pdo.sql
This wiki page is part of the documentation of the SQL data generator mk-sql-data