![](/img/trans.png)
[英]#1045 - Access denied for user 'root'@'localhost' (using password: YES)
[英]#1045 - Access denied for user 'azure'@'localhost' (using password: YES)
我正在为我的 PHP 应用程序使用 Azure Web 应用程序服务。
在我的 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 文件。
Azure 上的 Laravel 应用程序:用户 'azure'@'localhost' 的访问被拒绝。
2.尝试修改连接字符串, User
值应该是username
@ hostname
。
mysqli_real_connect(): (HY000/1045): Access denied for user 'azure'@'localhost' (使用密码: YES)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.