# Unable to connect after changing the Root password

**URL:** <https://www.singlestore.com/forum/t/unable-to-connect-after-changing-the-root-password/1846>\
**Category:** Security\
**Created:** [April 20, 2020, 3:46am UTC](https://www.singlestore.com/forum/t/unable-to-connect-after-changing-the-root-password/1846 "2020-04-20T03:46:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjsv](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/r/f17d59/32.png) [@rjsv](https://www.singlestore.com/forum/u/rjsv)\
**Post date:** [April 20, 2020, 3:46am UTC](https://www.singlestore.com/forum/t/unable-to-connect-after-changing-the-root-password/1846/1 "2020-04-20T03:46:40Z")

</div>

I have changed the root password of the memsql cluster as below.

 ![image](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/1X/bd68b4c3cb9971ea61cbb371249a674229c72010.png)

But I am unable to connect to the memsql cluster using the latest password. When I try to connect with latest password , I am facing an error as "ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)  
" Refer the below screenshot for more information.

 ![image](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/1X/6088c99fc51a83f55f379cd6e130389231567133.png)

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [April 20, 2020, 5:32pm UTC](https://www.singlestore.com/forum/t/unable-to-connect-after-changing-the-root-password/1846/2 "2020-04-20T17:32:49Z")

</div>

It looks like maybe the exclamation point in the string may have been interpreted by the Linux shell and changed the password itself. Looks like the password was actually set as:

“Raghavsudo memsql-report collect -allroot”

according the the output.

Next time try a password without an exclamation point.

---

<div class="post-metadata">

**Author:** ![rjsv](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/r/f17d59/32.png) [@rjsv](https://www.singlestore.com/forum/u/rjsv)\
**Post date:** [April 22, 2020, 2:35pm UTC](https://www.singlestore.com/forum/t/unable-to-connect-after-changing-the-root-password/1846/3 "2020-04-22T14:35:00Z")

</div>

> **[SingleStoreDB Cloud · SingleStore Documentation](https://docs.singlestore.com/v6.8/reference/memsql-tools-reference/memsqlctl-reference/memsqlctl-change-root-password/)**
>
> SingleStore is a modern relational database for cloud and on-premises that delivers immediate insights for modern applications and analytical systems. Book a demo or trial today!

sudo memsqlctl change-root-password --password “NewSecurePass”

In above link example specified in double quote.Password should be enclosed in single quote not in double quote.

Now I am able to connect.
