Created
March 20, 2012 09:03
-
-
Save garoevans/2133086 to your computer and use it in GitHub Desktop.
LINUX: automated mysql access
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
Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this: | |
cd /root | |
touch .my.cnf | |
chmod 640 .my.cnf | |
And put in it: | |
[client] | |
user=root | |
password=foobar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment