Access denied error while connecting to MySQL in App in Azure App Service(在 Azure 应用服务中的应用中连接到 MySQL 时访问被拒绝错误)
问题描述
我创建了一个 Azure 应用服务并在应用中启用了 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 说:文档
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 应用服务中的应用中连接到 MySQL 时访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Azure 应用服务中的应用中连接到 MySQL 时访问被拒绝错误


- 导入具有可变标题的 Excel 文件 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- SQL 临时表问题 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 更改自动增量起始编号? 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01