beauraines / server_backup

Scripts to backup ubuntu servers which include subversion repositories, MySQL databases, websites and minecraft.
2 stars 0 forks source link

Switches to MySQL Options files for root credentials #22

Open beauraines opened 5 years ago

beauraines commented 5 years ago

Removes the root user/pass from the configuration file and uses a mysqloptions file https://dev.mysql.com/doc/refman/8.0/en/option-files.html

This prevents warnings from mysql about using a pssword on the command line

Sample File make sure its not publicly readable, like your SSH keys.

[client]
user=root
password=your_password

Closes #14