600 on my.cnf

This commit is contained in:
Serghey Rodin 2013-06-06 22:37:22 +03:00
commit 6fd8a6b3ea

View file

@ -530,6 +530,7 @@ fi
mysqladmin -u root password $mpass
echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
chmod 600 /root/.my.cnf
mysql -e "DELETE FROM mysql.user WHERE User=''"
mysql -e "DROP DATABASE test"
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"