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

Posted by Nasser Hajloo on Stack Overflow See other posts from Stack Overflow or by Nasser Hajloo
Published on 2010-06-08T05:53:09Z Indexed on 2010/06/08 6:02 UTC
Read the original article Hit count: 202

I'm new to mysql, I'm trying to run Wordpress inmy windows desktop and it need Mysql.

I install everything with Web Platform Installer which provided by microsoft. I never seta root password for mysql and in final step of installing wordpressit askfor root password of mysql.

What is the default password for root (if there is one) and how to change it?

I try

mysql -u root password '123'

but it show me

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

after this I try

mysql -u root -p

but it ask for a password which I don't have

Thank you in advance

© Stack Overflow or respective owner

Related posts about mysql

Related posts about security