Answered by:
Cannot use Query Builder in TableAdapter Configuration Wizard

Question
-
I am using Visual Studio 2013 and MySQL NET adapter 6.8.3. I have created a WinForms app in VB. I am trying to create a dataset with a table from the MySQL database (named "propworx"). I do the following:
1. I create a new DataSet.
2. I edit the DataSet with the DataSet Designer.
3. I right-click on ANY TableAdapter, and I click "Configure".
4. I click on "Query Builder".I get the following error message:
The query builder has failed.
Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'Fabs-Work' (using password: NO)
(In the above, "Fabs-Work" is my computer name.)
Looking at the error message, I immediately see that the host and user information appears to be missing. But it is in my app.config file:
<connectionStrings> <add name="PropWorx.My.MySettings.PropWorxConnectionString" connectionString="server=localhost;user id=propworx;password=********;persistsecurityinfo=True;database=propworx" providerName="MySql.Data.MySqlClient" /> </connectionStrings>
(I have blanked out the password in the above post, but I have indeed double checked it and it is correct).
The database is hosted locally. I have created a database user in MySQL called "propworx" and have given it full rights.
Any ideas why Visual Studio Dataset Designer is not reading the info from my settings file?
Fabricio Rodriguez - Pretoria, South Africa
- Edited by Fabs1977 Monday, September 15, 2014 9:59 AM
- Moved by Kristin Xie Tuesday, September 16, 2014 2:06 AM
Monday, September 15, 2014 9:57 AM
Answers
-
Hi Fabs,
According to your description, this issue is related to MYSQL. I am afraid this is out of our support. I would suggest that you could ask this issue in their official forum. Here is the link,
Thanks for your understanding.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, September 16, 2014 2:05 AM
All replies
-
Hi Fabs,
According to your description, this issue is related to MYSQL. I am afraid this is out of our support. I would suggest that you could ask this issue in their official forum. Here is the link,
Thanks for your understanding.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, September 16, 2014 2:05 AM -
Hi Just
Thanks for the reply. Well, I'm not 100% sure that it is a MySQL issue.... It feels to me like it's a Visual Studio issue - for some reason, the VS DataSet Designer is not reading the connection string from the app.config file. Although I can't be sure - it might very well be a MySQL issue as you suggested.
Fabricio Rodriguez - Pretoria, South Africa
Friday, September 19, 2014 6:47 AM -
Hi Fabricio,
Did you ever solve the issue?
I have the same problem:
"Authentication to host " for user " ...."
Wednesday, October 8, 2014 8:30 AM -
no, sorry... I'm creating my queries in dbForge Studio whenever I need the assistance of a Query Builder... I've given up on Visual Studio's one....
Fabricio Rodriguez - Pretoria, South Africa
Wednesday, October 8, 2014 1:58 PM -
Ok, thank you Fabricio.
I solved my query building by using VS Server Explorer -> Tables and contex-menu-clicking directly on the tables, from there "New query". Then I copy the query to wherever I need it.
Best regards,
Mike.
Friday, October 10, 2014 7:31 AM -
it looks like this bug still exists. I can create tables in the designer just fine. I can create the crud operations, but as soon as I ask to use the query builder, it doesn't work. when I click query builder, it says login failed for user ''@'f330:a9bd:a99a:bc9d:ee2a%6'
i'm not sure where vs2017 is trying to get the connection string from for the query designer, other stuff works just fine. very weird.
~george
Wednesday, May 31, 2017 7:59 PM