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

**URL:** https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915
**Category:** Installation
**Created:** [January 24, 2026, 12:49am UTC](https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915 "2026-01-24T00:49:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Constantin](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Constantin](https://community.kinsta.com/u/Constantin)
#### Post date: [January 24, 2026, 12:49am UTC](https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915/1 "2026-01-24T00:49:24Z")

</div>

Hi everyone!

Trying to import a site from kinsta and I get the “Something bad happened“ error. When checking the logs I see this “Access denied for user ‘root’@‘localhost’ (using password: YES)“.

Tried all suggestions, including uninstalling, re-installing, restarting laptop, everything still same error appears every time.

I am on mac m4, any suggestion on what can I do is more than welcome.

---

<div class="post-metadata">

### Author: ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)
#### Post date: [January 25, 2026, 1:26am UTC](https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915/2 "2026-01-25T01:26:06Z")

</div>

Hi @Constantin Welcome to the Community!

We’d be happy to help you resolve the issue you’re experiencing. To better assist you, could you please provide the following information:

**DevKinsta Version:**  
**OS Version:**  
**Docker Desktop Version:**

Please also send us the DevKinsta’s **main.log** file via private message. You can get the main.log file by clicking on the “Reveal log file in File Manager” under the Help and Support page in DevKinsta.

Also, can you please try the alternative fix outlined in the link below?

> [@Error: Something bad happened - when trying to import site from myKinsta](https://community.kinsta.com/t/error-something-bad-happened-when-trying-to-import-site-from-mykinsta/5661/15):
>
> Hello @wpcreative-jwwaving_hand As discussed in our chat, I’m posting a complete step by step instructions, if needed in the future. @Seyed My colleague and I gave you the steps in the other threads, but I wanted to tag you here as well. Note: This applies to fixing the issues with site creation that are caused by database access error (in DevKinsta main.log, it’s → ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES) ). Part ONE - RESETING ‘root’ USER PASSW…

I will wait for your update.  
Thank you.

---

<div class="post-metadata">

### Author: ![Constantin](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Constantin](https://community.kinsta.com/u/Constantin)
#### Post date: [January 26, 2026, 9:40am UTC](https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915/3 "2026-01-26T09:40:34Z")

</div>

thank you very much @merineth in the meantime I found an alternative solution similar to the one from the link provided, I just logged in the devkinsta\_db container and run

`ALTER USER 'root'@'172.172.0.2' IDENTIFIED BY 'XXXXXX';FLUSH PRIVILEGES;`

This fixed the issue.

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [January 26, 2026, 9:58am UTC](https://community.kinsta.com/t/access-denied-for-user-root-localhost-using-password-yes/5915/4 "2026-01-26T09:58:22Z")

</div>

Hello @Constantin 👋

I’m glad to hear that you were able to resolve the issue 🎉 Thank you for following up with us!
