簡體   English   中英

#1045 - 用戶 'azure'@'localhost' 的訪問被拒絕(使用密碼:是)

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM