Click here to Skip to main content
16,021,823 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please help me. I've encountered a problem like this in my new application which is created in VS 2015 then after publishing the app, when I run it. It shows "Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES)"

What I have tried:

I've tried to install that in client. I mean in other pc.
Posted
Updated 30-Apr-21 6:30am
Comments
[no name] 14-Feb-21 12:11pm    
My advice: Stop working on that before you have knowledge about the basics :(
Member 15072542 14-Feb-21 12:14pm    
So what should I do? :( Could you explain what's wrong about that for me to aware?
Dave Kreskowiak 30-Apr-21 12:38pm    
Without seeing your connection string, everything that anyone posts is just guessing.

1 solution

There is a chance that the client PC have lower privilege to the server than the app. In this case, it might happen.
 
Share this answer
 
Comments
Dave Kreskowiak 30-Apr-21 12:37pm    
Uhhh...no. That's not a thing when the connection string is specifying the username and password to authenticate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900