linux poison RSS
linux poison Email

Howto change the MySQL root password

Here is a quick tip that will show several methods to change the mysql root password (that is normally empty at mysql initial install).

Method 1: using the SET PASSWORD command:
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

Method 2: using mysqladmin
mysqladmin -u root password "newpass"


Post a Comment

Related Posts with Thumbnails