access denied to mysql database

Tiffany Fischer 20 Reputation points
2025-07-20T23:31:18.1933333+00:00

Mysql DB was created automatically when creating an Azure WordPress. However, there is an issue in the database that has corrupted it and I need access to it to fix it. When I go to the database the instructions in the "Connect" section responds with access denied. I have tried executing the mysql login from the Azure Portal PowerShell as Well as the Azure WordPress SSH PowerShell. I checked the Wordpress wp-config.php file to confirm I had the correct user and password but I do not see the details there as expected. Please assist.

God bless,

Tiffany
214-392-1985

Azure Database for MySQL
{count} votes

Accepted answer
  1. Saraswathi Devadula 10,855 Reputation points Microsoft External Staff Moderator
    2025-07-21T17:43:56.6266667+00:00

    Hello Tiffany Fischer

    As discussed, you were unable to connect to mysql flexible server in azure.

    later, we reset the password and the issue is resolved.

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Tiffany Fischer 20 Reputation points
    2025-07-21T17:45:10.7433333+00:00

    I did not realize that I could reset the password from the Overview page! That was very helpful. Thank you


  2. Tiffany Fischer 20 Reputation points
    2025-07-21T17:56:12.72+00:00

    Turns out in App Services Environment there is a variable for password that I can change.


  3. Tiffany Fischer 20 Reputation points
    2025-07-21T18:00:26.7566667+00:00

    Turns out in App Services Environment there is a variable for password that I needed. Now i updated the env var and mysql db to password to match and restarted the app but there is an error connecting

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.