Workaround for test database connection in Advanced Installer "no data source name found and no default driver specified"

Source: Internet
Author: User
Tags odbc mysql version

In the original: Advanced Installer Test Database connection Prompt "No data source name found and no default driver specified" workaround

A recent installation package needs to be made with the following requirements:
1, the user manually fill out the MySQL address, user name and password
2, fill in the completion of the test database connection is a normal button function
3 、。。。。。。

The project requires a packaged MySQL version of the 5.5.27 x64 version, which, by studying advanced Installer discovery, provides a database connection string and is connected via ODBC, since it is an installed 64-bit database, Then connect ODBC nature is also 64 bit, speed download good ODBC64 bit version, open the whole.

1, the first step, add a button in the Connection dialog box, this button effect and properties such as:

2. Note In the first step specify the connection driver as: MySQL ODBC 5.3 ANSI Driver
3, test, the machine looks like everything is normal,

Start testing in the real world, when the tragedy begins ...

According to the needs of the environment, pre-installed the ODBC x64 version and MySQL, start clicking the Test button, bang, pop out this box:

What's the situation? is the drive not well? Check the next ODBC, and actually go with the next, in the ODBC test the next database connection, Ah!

Immediately Baidu, Baidu on all told is:
1. Check if ODBC is installed
2, do not add user ODBC to add system ODBC
3 、。。。。。

Well, according to Baidu, respectively, the System ODBC and user ODBC, and then the egg, or error. After studying the next own machine, there is no operation in ODBC.

At this time, suddenly thought, before doing RFS, 64-bit version of Webdrivers in 64-bit machine compatibility is not good, 32-bit, this will be the same pit?
Speed replacement ODBC Driver for 32-bit version, ODBC all configuration is removed, test the installation package again, successfully ....

I just want to say: MySQL, you did a really nice job!

Workaround for test database connection in Advanced Installer "no data source name found and no default driver specified"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.