# MySql Change Password

*Many a time your security scan shall fail for having*

/etc/mysql/debian.cnf file in your linux instance. Typically, after a image has been made, you need to remove this file and set a special user *debian-sys-maint which can be used to reset your root user login.*

**Step 1:**

```bash
mysql -u debian-sys-maint -p%oldpassword%
```

(replace %oldpassword% with the password you are being given by us when you first time do SSH to your instance)

&#x20;**Step2:**

*SET PASSWORD = PASSWORD(‘%newpassword%’);*

(replace %newpassword% with the  new password)

&#x20;**Step3:**

*exit*

**Step 4:**

Now you can login with this user and set password for any user including root

Mysql Debian conf file vulnerability remediation on public clouds – AWS Azure GCP Oracle04.16.2022


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocs.secureanycloud.com/mysql-change-password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
