Sales : +44-1616605030

Home | About Us | Support | Online Community | Blog | FAQ |

RSHosting Blogs

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

If you are getting this error message while accessing mysql from the shell then make sure that you have done
su -
from the command prompt after that fire
mysql
even if you are getting that error message then you need to reset the mysql password you can use following steps for it

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.

Leave a Reply

You must be logged in to post a comment.

| About Us | UK Reseller Hosting | US Reseller Hosting | Support | Faq | FOR INFORMATION info@rshosting.com
Copyright 2003 - 2008: RSHosting. All Rights Reserved. | Terms of Use | Privacy Policy