Can not set password for mysql server in cent os 6.2
Posted
by
HarshanaD
on Stack Overflow
See other posts from Stack Overflow
or by HarshanaD
Published on 2012-12-11T11:02:20Z
Indexed on
2012/12/11
11:03 UTC
Read the original article
Hit count: 218
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.
© Stack Overflow or respective owner