#1045 - 用户 'azure'@'localhost' 的访问被拒绝(使用密码:YES)
#1045 - Access denied for user 'azure'@'localhost' (using password: YES)
我正在为我的 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 堆栈中运行良好
用关键词Access denied for user 'azure'@'localhost' (using password: YES)
搜索本期后。
问题的原因应该还是连接字符串中的用户名和密码。我得出的结论是,您可以尝试通过以下方式解决问题。
1.创建 .env 文件。
Laravel app on Azure: Access denied for user 'azure'@'localhost'.
2。尝试修改连接字符串,User
值应该是username
@hostname
.
我正在为我的 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 堆栈中运行良好
用关键词Access denied for user 'azure'@'localhost' (using password: YES)
搜索本期后。
问题的原因应该还是连接字符串中的用户名和密码。我得出的结论是,您可以尝试通过以下方式解决问题。
1.创建 .env 文件。
Laravel app on Azure: Access denied for user 'azure'@'localhost'.
2。尝试修改连接字符串,User
值应该是username
@hostname
.