Easy way to login MySQL in CentOS

There is a way to login mysql by entering without password often
from your root directory
#vi .my.cnf

[client]
user=root   // db username
password=password  //db password

then save the file

Now you can enter your database without asking any password like

#mysql
mysql>quit



Post a Comment

0 Comments