Change MySQL Admin password http://www.meabi.com/?p=325 http://www.meabi.com/?p=325
Change MySQL Admin password
mysqladmin: connect to server at ‘localhost’ failed
[root@fedora12 user1]#
After Set this will not work
If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:
[root@fedora12 user1]# mysqladmin -u root password 123456
mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@'localhost’ (using password: NO)’
To change existing Password
[root@fedora12 user1]# mysqladmin -u root -p’123456′ password 123456
[root@fedora12 user1]#
Change MySQL password for other user
To change a normal user password you need to type (let us assume you would like to change password for meabi):
$ mysqladmin -u meabi -p oldpassword password newpass
Changing MySQL root user password using MySQL sql command
This is another method. MySQL stores username and passwords in user table inside MySQL database. You can directly update password using the following method to update or change password for user meabi:
1) Login to mysql server, type following command at shell prompt:
$ mysql -u root -p
2) Use mysql database (type command at mysql> prompt):
mysql> use mysql;
3) Change password for user meabi:
mysql> update user set password=PASSWORD("NEWPASSWORD") where User='meabi';
4) Reload privileges:
mysql> flush privileges; mysql> quit
Linux, MySQL
123456, 2011, 2012, abhilash, admin, change, command, database, database type, error, following, localhost, Login, meabi, MySQL, mysqladmin, newpassword, oldpassword, password, privileges, Reload, root, root password, root user, server type, Set, setup, shell, SQL, sql command, table, time, type, use, user1, username, username and passwords

Meet Author
S.Abhilash, started this blog in the later half of 2009 as a self hosting site for all his previous blogging attempts. , My way of writing and frequency of publishing may not be uniform as my resources are my projects nd issues i came across. For the last few years this blog is reacing 100 s of unique visitors each day, thanks wordpress and google for such a perfection in their software and services.
Submit Your Email For Free Updates on New Articles