@Makoto Oda Thanks for the ask and using the Microsoft Q&A platform.
This requires more troubleshooting to isolate the issue, as the error is generic. General reasons for 1045 is outlined in the blog here
- Can you connect to MySQL using AAD authentication from client tools like mysql client, workbench etc..
- You should be looking at how the host name and user is specified (For single uername@keyman @<servername> is required) ?
- If you are receiving the token, then dump that token , Connection object and use client tools like workbench or ADS to connect to the server using the token.
- Are the firewall rules in place ?
I hope this information helps to fix your problem.
Regards
Geetha