makkintosshu / automysqlcheck

Check all mysql database tables for errors
http://dev.mysql.com/doc/refman/5.0/en/check-table.html
2 stars 0 forks source link

Use MySQL options file for username & password #1

Closed morgant closed 5 years ago

morgant commented 5 years ago

Currently, the MySQL username & password are defined within the automysqlcheck script, but this is less secure and also requires modification of the script for every installation. We should use MySQL's --defaults-file option for including the username & password (see https://dev.mysql.com/doc/refman/8.0/en/option-file-options.html#option_general_defaults-file & https://mariadb.com/kb/en/library/mysqldump/#option-f iles).

morgant commented 5 years ago

Updated to use specified OPTIONS_FILE MySQL options file for auth credentials.

morgant commented 5 years ago

Added basic usage instructions to README.