This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL/mariaDB secure authorization file. | |
# | |
# To not have to put the password as an argument to the mysql commands, i.e. we don't want to | |
# use the -p option. Instead use a .my.cnf file in the home dir of the user you are running this | |
# script as, i.e. /root/.my.cnf if running as root. This way you can securely run mysqldump as | |
# root without the password being exposed in the process list. First create a .my.cnf in the home | |
# dir of root and make sure only root can read or change it by running the following three commands: | |
# | |
sudo touch /root/.my.cnf | |
sudo chown 0:0 /root/.my.cnf |