<commit_before>Before you can use the examples you have to prepare the following [[Prerequisites]]

# The script file mk-sql-data-01.cmd

This script file runs against a MYSQL database and creates relational test data. 

Use the program "mysql" in order to execute the SQL commands.

## Run the example script and create the test data
```
./mk-sql-data.php --cfg examples/mk-sql-data-01.cmd
```

## Import the test data into our database
```
mysql -u db2phpsite -pdb2phpsite < output/random-data-mysql.sql
```

# The script file mk-sql-data-02-mysql.cmd

This script file runs against a MYSQL database and creates relational test data. 

Use the program "mysql" in order to execute the SQL commands.

## Run the example script and create the test data
```
./mk-sql-data.php --cfg examples/mk-sql-data-02-mysql.cmd
```

## Import the test data into our database
```
mysql -u db2phpsite -pdb2phpsite < output/random-fk-mysql.sql
```
<commit_msg>Updated Examples MySQL (markdown)<commit_after>Before you can use the examples you have to prepare the following [[Prerequisites]]

# The script file mk-sql-data-01.cmd

This script file runs against a MYSQL database and creates relational test data. 

Use the program "mysql" in order to execute the SQL commands.

## Run the example script and create the test data
```
./mk-sql-data.php --cfg examples/mk-sql-data-01.cmd
```

## Import the test data into our database
```
mysql -u db2phpsite -pdb2phpsite < output/random-data-mysql.sql
```

# The script file mk-sql-data-02-mysql.cmd

This script file runs against a MYSQL database and creates relational test data. 

Use the program "mysql" in order to execute the SQL commands.

## Run the example script and create the test data
```
./mk-sql-data.php --cfg examples/mk-sql-data-02-mysql.cmd
```

## Import the test data into our database
```
mysql -u db2phpsite -pdb2phpsite db2phpsite< output/random-fk-mysql.sql
```

{'fraction_non_alphanumeric': 0.1022964509394572, 'fraction_numerical': 0.013048016701461378, 'mean_word_length': 3.8654822335025383, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4578862', 'n_tokens_mistral': 613, 'n_tokens_neox': 579, 'n_words': 238}