Can not set password for mysql server in cent os 6.2
- by HarshanaD
I have installed mysql and then mysql-server. Then i start the mysql demon and follow below steps,
# chkconfig --level 2345 mysqld on
# mysqladmin -u root password testpassword
But i can not set the password because it gives me the below error,
Access denied for user root@localhost (using password: no)
I logged in as root user and perform those steps.
I even uninstalled mysql server and reinstalled but same problem occurred.