在Azure App Service中连接到App中的MySQL时访问被拒绝错误 [英] Access denied error while connecting to MySQL in App in Azure App Service
问题描述
我创建了一个Azure App Service,并在App中启用了MySql.我可以从门户使用phpMyAdmin连接到MySql-转到应用程序->应用程序中的MySql->单击管理.它使用phpMyAdmin打开另一个窗口.
I created an Azure App Service and enabled MySql in App. I able to connect to MySql using phpMyAdmin from portal - go to app -> MySql in App -> click manage. It open another window with phpMyAdmin.
但是现在不知何故我无法连接到数据库.我遇到错误了
But somehow now I am not able to connect to database. I get below error
MySQL表示:文档
MySQL said: Documentation
2002-试图以一种被禁止的方式访问套接字 它的访问权限. —服务器无响应(或本地 服务器的套接字未正确配置.)
2002 - An attempt was made to access a socket in a way forbidden by its access permissions. — The server is not responding (or the local server's socket is not correctly configured).
推荐答案
很简单. 如果您已停止网站并重新启动,则必须使用浏览器连接到网站URL,然后才能使用phpMyAdmin.
It's simple. If you have stopped the website and started it again, you must connect to the website URL from a browser, before you can use phpMyAdmin.
这篇关于在Azure App Service中连接到App中的MySQL时访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!