Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this:
/root
touch .my.cnf
chmod 640 .my.cnf
And put in it:
[client] user=root password=foobar
Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this:
/root
touch .my.cnf
chmod 640 .my.cnf
And put in it:
[client] user=root password=foobar
1 Comment ( Add comment / trackback )
[…] Please set the password for MySQL in /root/.my.cnf for automated access. See this post for details. […]