简体   繁体   中英

#1045 - Access denied for user 'azure'@'localhost' (using password: YES)

I am using the Azure Web App service for my PHP app.

In my PHPMyAdmin dashboard when I run the following query I get the error:

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

After searching this issue with key words 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.

Laravel app on Azure: Access denied for user 'azure'@'localhost' .

2. Try to modify connection strings, User value should be username @ hostname .

mysqli_real_connect(): (HY000/1045): Access denied for user 'azure'@'localhost' (using password: YES)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM