# Setting root password problem

**URL:** <https://forum.kirupa.com/t/setting-root-password-problem/143942>\
**Category:** Uncategorized\
**Created:** [April 10, 2005, 7:28am UTC](https://forum.kirupa.com/t/setting-root-password-problem/143942 "2005-04-10T07:28:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapitan](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kapitan](https://forum.kirupa.com/u/kapitan)\
**Post date:** [April 10, 2005, 7:28am UTC](https://forum.kirupa.com/t/setting-root-password-problem/143942/1 "2005-04-10T07:28:53Z")

</div>

hi! this is my 1st post. please bear with me. i just downloaded mysql. i had the anonymous user deleted but when i tried to set my root password i got this error:

‘Access denied for user: ‘root@localhost’ \<Using password: NO\>’

this is what i type at cmd:

```
c:\mysql\bin -u root password your_mikayla02
c:\mysql\bin -u root -h your_host_name password your_mikayla02

```

please kindly help me on this guyz.

thnks,

kapitan
