# ---------------------------------------------------- # --- # - Parameter Settings for Script 'optimize_mysql_tables.sh' # --- # ---------------------------------------------------- # - 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 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=/var/run/mysqld/mysqld.sock --user=backup --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=""