Page 1 of 1

access denied mysql exception

Posted: Fri 04 Apr 2014 17:58
by joelr
I am getting the following exception from a .NET C# app that has been working for years. It is occurring on all 3 installations I tested today despite the fact that the underlying DB is fully accessible remotely via MysqlWorkbench with the connection parameters being used here.

This is an old version of a (possibly discontinued?) corelab mysql DLL.

CoreLab.MySql.MySqlException was unhandled
Message=Access denied for user ''@'' (using password: NO)
at CoreLab.MySql.MySqlConnection.Open()
at Linscot.JdbcTemplate.query(String sql, RowCallbackHandler callbackHandler) in Z:\Projects\Linscot-original\JdbcTemplate.cs:line 45
at Linscot.DataBrowser.getCompanyList() in Z:\Projects\Linscot-original\DataBrowser.cs:line 1781
at Linscot.DataBrowser.setCompanyList() in Z:\Projects\Linscot-original\DataBrowser.cs:line 1787
at Linscot.DataBrowser..ctor() in Z:\Projects\Linscot-original\DataBrowser.cs:line 197
at Linscot.MainForm.openViewer(Object sender, EventArgs e) in Z:\Projects\Linscot-original\MainForm.cs:line 289
. . .

I'm pretty baffled at the moment as to how to best proceed with this.
Any clues, thoughts, etc are appreciated. I have full admin access to the DB, which is hosted at godaddy.


Re: access denied mysql exception

Posted: Mon 07 Apr 2014 16:58
by Pinturiccio
joelr wrote:Access denied for user ''@'' (using password: NO)
According to the exception message, you have not specified login and password for the connection that you try to open. Please check the connection string and make sure that the UserId property is specified.

Re: access denied mysql exception

Posted: Mon 07 Apr 2014 18:25
by joelr
actually, the connection is correct, has been the same for years then stopped working for no reason.
I checked it with debugger - connection has right parameters AND wireshark shows wrong ones going out.
This narrows it down to the corelab DLL.

code has not changed in years.

Re: access denied mysql exception

Posted: Tue 08 Apr 2014 15:09
by Pinturiccio
Please try your application with the latest version of dotConnect for MySQL. According to your email your subscription has expired. You can download Trial version of dotConnect for MySQL from our site and try if the issue is reproduced with the latest version of dotConnect for MySQL.

Please note that after upgrading MySQLDirect .NET to dotConnect for MySQL, you will have to make certain changes to your project. For details please refer to ... Q.html#q19

Re: access denied mysql exception

Posted: Tue 08 Apr 2014 15:45
by joelr
I had done this last night after realizing that I would not be getting any help in fixing the existing DLL with a freshly downloaded one from the archived product site.

I guessed correctly that dotConnect was the 'evolved' version of my coreLab.MySql DLL - I was able to get this program working again by making changes to the code to allow for the name changes and to allow for the additional reference assembly that is now required.

I guess you folks succeeded in squeezing another $100 from me - the irony is that I'm less than two months away from releasing the web application version of my program that works with the Play! framework and all open source code to access the mysql DB. Congratulations on that! After 10 years of use, your library is paying you dividends that might have escaped had I completed this project sooner (before the time bomb in your corelab product disabled it for me).

:D :( :shock: :roll: 8)

Re: access denied mysql exception

Posted: Fri 11 Apr 2014 12:53
by Pinturiccio
The information you have provided is not enough to reproduce the issue. Probably the MySQL server was updated or other environment parameters were changed.
Please describe the issue in more details and tell us the following:
1. MySQL database version;
2. CoreLab.MySql.dll version;
3. Visual Studio version;
4. .NET Framework with which you build the application.
5. Send us a small test project with the corresponding DDL/DML scripts.