Access denied error while connecting to MySQL in App in Azure App Service(在 Azure 应用服务中的应用程序中连接到 MySQL 时访问被拒绝错误)
问题描述
我创建了一个 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 说:文档
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 时访问被拒绝错误
基础教程推荐
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01