Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Ms Ling 21 Reputation points
2021-01-22T07:12:41.537+00:00

Hello experts,

I need your help with error: "

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified."

I've looked at numerous posts but none helped me. :'(

MySQL database server is running on Windows10 64bit.

Client Excel where the VBA code is running is 64 bit.

64 bit odbc manager is configured with System DSN, and the name is the defined in connection string in Excel ADODB connection string.

64bit & 32 bit ODBC driver has been installed on MySQL server as well.

I really need your help on resolving the error which occurs when ADODB Connection.open function is called.

Appreciated!

Discussion
You cannot vote on your own post
0
Hello experts,

I need your help with error: "

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified."

I've looked at numerous posts but none helped me. :'(

MySQL database server is running on Windows10 64bit.

Client Excel where the VBA code is running is 64 bit.

64 bit odbc manager is configured with System DSN, and the name is the defined in connection string in Excel ADODB connection string.

64bit & 32 bit ODBC driver has been installed on MySQL server as well.

I really need your help on resolving the error which occurs when ADODB Connection.open function is called.

Appreciated!

I've granted user permission on both server level as well as MySQL lever

VBA connection string looks like:

Driver={MySQL ODBC 5.3 Unicode Driver};Server=" & serverAddress & ";Database=jkydb1;Uid=agent;pwd=password;Connect Timeout=500;OPTION=16427"

Incoming rules of MySQL server firewall is also added.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,133 questions
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 113.3K Reputation points MVP
    2021-01-22T22:49:12.937+00:00

    First of all, this is an error from the driver manager, so you are not even coming to the ODBC driver, even less your MySQL Server.

    I did a quick test on my machine where I deliberately misspelled the name of the ODBC Driver, and I got the same error message as you.

    This leads me to think that you have the name of the ODBC driver wrong, or you have not installed the driver. Unfortunately, I cannot help you with the driver name. I saw this, because you have tagged this for SQL Server, which is a different product from MySQL, and my expertise is with SQL Server, not MySQL.


2 additional answers

Sort by: Most helpful
  1. Erland Sommarskog 113.3K Reputation points MVP
    2021-01-25T22:12:38.017+00:00

    ODBC driver is installed on the MySQL driver, both 32 bit and 64 bit.

    You have the ODBC driver on the machine where you have MySQL. But do you have the ODBC driver on the machine where you have Excel?

    1 person found this answer helpful.

  2. CathyJi-MSFT 22,321 Reputation points Microsoft Vendor
    2021-01-25T03:08:45.923+00:00

    Hi @Ms Ling ,

    We add the SQL server general tag when we meet the issues about MS SQL server. You issue is related to MySQL , I suggest you ask the experts in the MySQL forum to get better help.

    MySQL Forums
    Or
    https://stackoverflow.com/questions/tagged/mysql

    Best regards,
    Cathy Ji


    If the response is helpful, please click "Accept Answer" and upvote it, thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.