php-censor/docs/en/plugins/mysql.md
2017-01-04 19:22:20 +07:00

36 lines
658 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Plugin MySQL
============
Connects to a given MySQL server and runs a selection of queries.
Configuration
-------------
### Examples
```yaml
build_settings:
mysql:
host: 'localhost'
user: 'testuser'
pass: '12345678'
setup:
mysql:
- "CREATE DATABASE my_app_test;"
complete:
mysql:
- "DROP DATABASE my_app_test;"
```
Import SQL from file:
```yaml
setup:
mysql:
import-from-file: # This key name doesn´t matter
import:
database: "foo" # Database name
file: "/path/dump.sql" # Relative path in build folder
```