Access denied for user ‘root’@’localhost’ (using password: NO)

Access denied for user ˜root@’localhost” (using password: NO)

If you are getting the above mentioned error message while accessing mysql from the shell then make sure that you have done

su -

from the command prompt after that fire

mysql

if still you are getting that error message then you need to reset the mysql password

To reset the mysql password you can use following steps:

first locate your mysql’s hostname.pid file then

kill `cat /mysql-data-directory/host_name.pid`
mysqld_safe skip-grant-tables &
mysqladmin -u root flush-privileges password newpassword

New password will be the password that you want to set now

Share your Love

Technorati Tags:

This entry was posted in Blogging, CGI and Perl hosting, cPanel Help, Dedicated Server Hosting, Email Hosting, Internet Security, Linux Reseller hosting, Linux Web Hosting, Managed Dedicated Server, MySQL Hosting and issues, Php Web Hosting, Plesk Web Hosting, Semi-Dedicated Hosting, SEO Optimization, UK Datacenter and Network, UK Domain name registration, UK Reseller Webhosting, UK Web Hosting, Uncategorized, Web Design, Windows Reseller Hosting, Windows Web Hosting and tagged . Bookmark the permalink.

Leave a Reply