[英]#1045 - Access denied for user 'azure'@'localhost' (using password: YES)
I am using the Azure Web App service for my PHP app.我正在为我的 PHP 应用程序使用 Azure Web 应用程序服务。
In my PHPMyAdmin dashboard when I run the following query I get the error:在我的 PHPMyAdmin 仪表板中,当我运行以下查询时出现错误:
my query:我的查询:
GRANT ALL PRIVILEGES ON *.* TO 'poc-qa-team'@'%';
Error:错误:
#1045 - Access denied for user 'azure'@'localhost' (using password: YES)
Any idea how to get this done.知道如何完成这项工作。
Furthermore,此外,
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
Note: Same app runs well in Azure VM LAMP stack注意:相同的应用程序在 Azure VM LAMP 堆栈中运行良好
After searching this issue with key words Access denied for user 'azure'@'localhost' (using password: YES)
.在使用关键字Access denied for user 'azure'@'localhost' (using password: YES)
搜索此问题后。
The cause of the problem should still be the user name and password in the connection string.问题的原因应该仍然是连接字符串中的用户名和密码。 I concluded that you can try to solve the problem in the following ways.我得出的结论是,您可以尝试通过以下方式解决问题。
1. Create.env file. 1. 创建.env 文件。
Laravel app on Azure: Access denied for user 'azure'@'localhost' . Azure 上的 Laravel 应用程序:用户 'azure'@'localhost' 的访问被拒绝。
2. Try to modify connection strings, User
value should be username
@ hostname
. 2.尝试修改连接字符串, User
值应该是username
@ hostname
。
mysqli_real_connect(): (HY000/1045): Access denied for user 'azure'@'localhost' (using password: YES) mysqli_real_connect(): (HY000/1045): Access denied for user 'azure'@'localhost' (使用密码: YES)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.