Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

mysql - “Client from Interface Endpoint is not allowed to access the server. Please make sure your Virtual Network is correctly configured. (SQL state 28000)

I'm trying to connect an application in Azure to my Azure DB for MySQL. I have created a private endpoint to it which was approved. However, while trying to connect to the DB, their team is getting the following error:

Client from Interface Endpoint is not allowed to access the server. Please make sure your Virtual Network is correctly configured. (SQL state 28000)

Could you help me understand what this error means? I can't find anything similar on the internet.

Points to be noted:

  1. We have to Deny Public Network Access so "Allow Access to Azure services" is not an option to follow.
  2. All connections to the database have to go through the Private endpoint.
question from:https://stackoverflow.com/questions/65880163/client-from-interface-endpoint-is-not-allowed-to-access-the-server-please-make

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Have you added the Client IP in Network Firewall.

If you disable allow access to all Azure resources then you will have to explicitly add the IP of user who will be accessing the Azure DB.

In the Azure DB, you will see following options, you need to select firewall option and then add firewall so that that particular IP can be bypassed.

enter image description here

More details can be found here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...