Only one configuration file for all database creation/drop scripts.
This commit is contained in:
@ -1,45 +0,0 @@
|
||||
|
||||
## ===================================================================
|
||||
## - 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"
|
||||
# -
|
||||
# - # MariaDB 10.4.x
|
||||
# - MYSQL_CREDENTIAL_ARGS="-u root -S /tmp/mysql.sock"
|
||||
# -
|
||||
# - Defaults to MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
||||
# -
|
||||
#MYSQL_CREDENTIAL_ARGS=""
|
@ -1,37 +0,0 @@
|
||||
|
||||
## ===================================================================
|
||||
## - 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=""
|
@ -63,3 +63,10 @@
|
||||
# - further relevance .
|
||||
# -
|
||||
#mysql_credential_args_arr=""
|
||||
|
||||
|
||||
# - log_file - only available for optimize_tables script
|
||||
# -
|
||||
# - Defaults to "/var/log/${script_name%%.*}.log"
|
||||
# -
|
||||
#log_file="/var/log/optimize_mysql_tables.log"
|
||||
|
@ -1,78 +0,0 @@
|
||||
# ----------------------------------------------------
|
||||
# ---
|
||||
# - Parameter Settings for Script 'optimize_mysql_tables.sh'
|
||||
# ---
|
||||
# ----------------------------------------------------
|
||||
|
||||
|
||||
# - MySQL / MariaDB / Percona credentials
|
||||
|
||||
# - mysql_credential_args
|
||||
# -
|
||||
# - 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 Version 5.6, that method is considered as insecure.
|
||||
# - To avoid giving the password on command line, we use an
|
||||
# - encrypted option 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="--login-path=local"
|
||||
|
||||
|
||||
# - mysql_credential_args_arr
|
||||
# -
|
||||
# - If multiple MySQL / MariaDB / Percona Installations are present, for each installation,
|
||||
# - you can give its own credentials.
|
||||
# -
|
||||
# - Create (encrypted) option 2 files (Example):
|
||||
# - $ mysql_config_editor set --login-path=local --socket=/tmp/mysql.sock --user=root --password
|
||||
# - $ Password:
|
||||
# -
|
||||
# - $ mysql_config_editor set --login-path=local-5.6 --socket=/tmp/mysql-5.6.sock --user=root --password
|
||||
# - $ Password:
|
||||
# -
|
||||
# - Note:
|
||||
# - If this parameter ist present, the parameter 'mysql_credential_args' will be ignored.
|
||||
# -
|
||||
# - Examples:
|
||||
# - mysql_credential_args_arr=("MariaDB 10.2.13:--defaults-file=/etc/mysql/debian.cnf "5.7:--login-path=local")
|
||||
# - msql_credential_args_arr=("5.6:--login-path=local-5.6" "5.7:--login-path=local")
|
||||
# - mysql_credential_args_arr=(
|
||||
# - "5.7:--login-path=local"
|
||||
# - "5.6:--login-path=mysql-5.6"
|
||||
# - "8.0:--login-path=mysql-8.0"
|
||||
# - "MariaDB 10.3:--defaults-file=/usr/local/mariadb-10.3.12/sys-maint.cnf"
|
||||
# - "MariaDB 10.4:-u root -S /tmp/mariadb-10.4.6.sock"
|
||||
# - )
|
||||
# -
|
||||
# - Note:
|
||||
# - the first value (before the colon ':') is only used for logging output and has no
|
||||
# - further relevance .
|
||||
# -
|
||||
#mysql_credential_args_arr=""
|
||||
|
||||
# - log_file
|
||||
# -
|
||||
# - Defaults to "/var/log/optimize_mysql_tables.log"
|
||||
# -
|
||||
#log_file="/var/log/optimize_mysql_tables.log"
|
Reference in New Issue
Block a user