Solved

Access denied for user 'root' @ 'localhost'

Posted on 2009-05-18
1
379 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
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now