How to fix ERROR 1045 (28000): Access denied for user 'ecommerceapp@mydbserver1'@'myip' (using password: YES)

Wenbo Peng 0 Reputation points
2024-10-09T00:19:39.14+00:00

Hello,

I am using Windows 10. I have an Azure Database for MySQL flexible server that I can successfully connect to using my local MySQL workbench. However, when I use mysql -h

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
992 questions
Windows for business | Windows Server | User experience | PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2024-10-09T04:51:24.8066667+00:00

    Hi Wenbo Peng •,

    Welcome to Microsoft Q&A forum.

    As I understand, you have an Azure Database for MySQL Flexible Server which you can connect via MySQL workbench but not via PowerShell.

    Could you please let us know if you are using Azure Cloud Shell for this?

    If your Azure Database for MySQL - Flexible Server has to connect with private access connectivity method, follow https://learn.microsoft.com/en-us/azure/mysql/flexible-server/quickstart-create-connect-server-vnet

    Refer to this blogpost MySQL Flexible Server PowerShell Module:

    https://techcommunity.microsoft.com/t5/azure-database-for-mysql-blog/introducing-the-mysql-flexible-server-powershell-module/ba-p/2203383

    Hope this helps. Let us know if your ask is different.

    Thanks

    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.