【发布时间】:2021-08-10 13:21:19
【问题描述】:
我正在为我的 PHP 应用程序使用 Azure Web App 服务。
在我的 PHPMyAdmin 仪表板中,当我运行以下查询时出现错误:
我的查询:
GRANT ALL PRIVILEGES ON *.* TO 'poc-qa-team'@'%';
错误:
#1045 - Access denied for user 'azure'@'localhost' (using password: YES)
知道如何完成这项工作。
此外,
ON URL: https://xyz-dev.azurewebsites.xyz/installer/
Fatal error: Uncaught Error: Call to undefined function apache_get_version() in
D:\home\site\wwwroot\installer\index.php:43 Stack trace: #0
D:\home\site\wwwroot\installer\index.php(232): checkDependencies() #1 {main} thrown in
D:\home\site\wwwroot\installer\index.php on line 43
注意:同一应用在 Azure VM LAMP 堆栈中运行良好
【问题讨论】:
-
您是如何尝试运行查询的?该错误与查询没有直接关系,但可能与用户只能连接到 localhost 而不能连接到任何远程主机这一事实有关
-
您向
poc-qa-team授予权限,但应用程序以azure作为用户名连接???? -
那么 azure Web 服务是否允许我们运行此查询,或者如何从 azure 授予权限,或者此查询无法在 azure Web 服务上运行的 PHPMyAdmin 仪表板上运行?
标签: php mysql azure-devops phpmyadmin azure-web-app-service