简体   繁体   English

#1045 - 用户 'azure'@'localhost' 的访问被拒绝(使用密码:是)

[英]#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.

相关问题 #1045-用户'root'@'localhost'的访问被拒绝(使用密码:是) - #1045 - Access denied for user 'root'@'localhost' (using password: YES) PHP Owncloud [1045] SQLSTATE [HY000] [1045]用户'ownclouduser'@'localhost'的访问被拒绝(使用密码:是) - PHP Owncloud [1045] SQLSTATE[HY000] [1045] Access denied for user 'ownclouduser'@'localhost' (using password: YES) #1045-拒绝'root'@'localhost'访问(使用密码:是) - #1045 - Access denied for 'root'@'localhost' (using password: YES) (HY000/1045):使用 Windows 拒绝用户 'root'@'localhost'(使用密码:YES)的访问 - (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) using Windows mysqli::__construct(): (HY000/1045): 用户 'username'@'localhost' 访问被拒绝(使用密码:YES) - mysqli::__construct(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) SQLSTATE [HY000] [1045] 用户'root'@'localhost'的访问被拒绝(使用密码:YES)symfony2 - SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) symfony2 Laravel 5 错误 SQLSTATE[HY000] [1045] 用户 'homestead'@'localhost' 的访问被拒绝(使用密码:YES) - Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) SQLSTATE [HY000] [1045]用户'webapp'@'localhost'的访问被拒绝(使用密码:是) - SQLSTATE[HY000] [1045] Access denied for user 'webapp'@'localhost' (using password: YES) SQLSTATE[HY000] [1045] 用户 'homestead'@'localhost' 访问被拒绝(使用密码:YES) - SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) mysqli_connect(): (28000/1045): 用户 'username'@'localhost' 访问被拒绝(使用密码:YES) - mysqli_connect(): (28000/1045): Access denied for user 'username'@'localhost' (using password: YES)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM