43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
|
|
## ===================================================================
|
|
## - Configuration File for "create_drop_database.sh" Script
|
|
## ===================================================================
|
|
|
|
# - ACTION
|
|
# -
|
|
# - What to do ? Create or drop a given Database
|
|
# -
|
|
# - Only possible values are 'create' or 'drop'
|
|
# -
|
|
#ACTION=""
|
|
|
|
|
|
# - MYSQL_CREDENTIAL_ARGS
|
|
# -
|
|
# - MySQL / MariaDB credentials
|
|
# -
|
|
# - Giving password on command line is insecure an sind mysql 5.5
|
|
# - you will get a warning doing so.
|
|
# -
|
|
# - Reading username/password fro file ist also possible, using MySQL/MariaDB
|
|
# - commandline parameter '--defaults-file'.
|
|
# -
|
|
# - Since Mysql Version 5.6, you can read username/password from
|
|
# - encrypted file.
|
|
# -
|
|
# - Create (encrypted) option file:
|
|
# - $ mysql_config_editor set --login-path=local --socket=/tmp/mysql.sock --user=root --password
|
|
# - $ Password:
|
|
# -
|
|
# - Use of option file:
|
|
# - $ mysql --login-path=local ...
|
|
# -
|
|
# - Example
|
|
# - MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
|
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
|
|
# - MYSQL_CREDENTIAL_ARGS="--defaults-file=/usr/local/mysql/sys-maint.cnf"
|
|
# -
|
|
# - Defaults to MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
|
# -
|
|
#MYSQL_CREDENTIAL_ARGS=""
|