?
Solved

Access denied for user 'root' @ 'localhost'

Posted on 2009-05-18
1
Medium Priority
?
394 Views
Last Modified: 2012-05-07
Using latest VS2008 and MySql with MyDirect.Net.

I keep getting this error:  "Access denied for user 'root'@'localhost' (using password: YES)"

It happends when I call GetData in the table adapter.  (I'm using an XSD dataset to get the data.)  Any idea how I should fix it?

The GetData returns data fine when I preview it in the DataSet Designer.  I can see the tables in my Server Explorer as well.
0
Comment
Question by:RobertNZana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1500 total points
ID: 24413085
first:
do NOT use the ROOT account to connect to a mysql database from your applications.

anyhow, you need to configure the permissions accordingly for (the account).
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question