38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
|
|
## ===================================================================
|
|
## - Configuration File for "drop_tables.sh" Script
|
|
## ===================================================================
|
|
|
|
|
|
# - 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"
|
|
# -
|
|
# - # MariaDB 10.4.x
|
|
# - MYSQL_CREDENTIAL_ARGS="-u root -S /tmp/mysql.sock"
|
|
# -
|
|
# - Defaults to MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
|
# -
|
|
#MYSQL_CREDENTIAL_ARGS=""
|