October 2002
Intermediate to advanced
1024 pages
27h 26m
English
Your MySQL username and password are stored in your option file, and you don’t want other users reading it.
Change the file’s mode to make it accessible only by you.
If you use a multiple-user operating system such as Unix, you should protect your option file to prevent other users from finding out how to connect to MySQL using your account. Use chmod to make the file private by setting its mode to allow access only by yourself:
% chmod 600 .my.cnf