log in to MySql server without password

We can login into MySql prompt without password from shell using root user .

To configure mysql user prompt without password, open the file ~/.my.cnf file and add the following section.


If you don’t know MySql password,, then simply reset the mysql root user password and define it in above file.

Senior technical writer

Be Sociable, Share!
About Anant 357 Articles
Senior technical writer