Here is the solution for the error:mysqli_connect(): (HY000/1045): Access denied for user (using password: YES)Solution:Make sure that your password doesn't have special characters and just keep a plain password (for ex: 12345), it will work. This is the strangest thing that I have ever seen. I spent about 2 hours to figure this out.Note: 12345 mentioned below is your plain password that you would like to set for the below username.GRANT ALL PRIVILEGES ON dbname.* TO 'yourusername'@'%' IDENTIFIED ......
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES) php mysql hosted on a linux server - Solution after struggling for 3 hoursHey guys, I broke my head for about 3 hours to solve this issue :ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)Tried google so many times with different possible combinations and it didnt work out.I got the following link in bing, which was the 2nd result and it finally solved the problem.https://help.ubuntu... ......