ODBC Connectivity issue - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

ODBC Connectivity issue

Hi,

I am trying run a MySQL script using ODBC. However i am having a connectivity issue ({SQL_STATE: HY000} Can't connect to MySQL server on 'localhost' (10061)) but have checked all my settings. If i remove the SQL script the installation finishes ok and i can access the database via the ODBC driver in Microsoft's ODBC admin tools. Is there any reason this would not work, or have connectivity during installation. At the point of failure I cannot access the database using the ODBC driver.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ODBC Connectivity issue

Hello,

Please follow this thread to solve your issue.
If the solution scenarios described in the link don't help, please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: ODBC Connectivity issue

Hi Mihai,

Thanks for your reply.

I have found out what is causing the problem but don't know how to resolve it.

I have a MySQL service setup as a custom action and it is configured to run before the execution of the SQL scripts but when they are executed the service is not full operational at that point.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ODBC Connectivity issue

Hello,

Where in the InstallExecuteSequence are you placing your MySQL service custom action ? Is it before the "InstallODBC" standard action ?
SQL Scripts are executed after "InstallODBC" therefore, your MySQL service custom must be set before that. For example, you can schedule it after "RegisterFonts".
To show a standard action in the sequence you can use the "Show Standard Action" toolbar button or the context menu in the "Custom Actions" page.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: ODBC Connectivity issue

I did have the MySQL service set after 'RegisterFonts' and then moved it to after 'PatchFiles' but to no avail.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ODBC Connectivity issue

Hello,

I am suspecting you may have some privileges related issues in your settings. My colleague explains how to install MySql as a service in the following thread.
Please try and see if that helps you and if it doesn't you can send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can help you investigate.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: ODBC Connectivity issue

Thanks for the assistance.

I have previously viewed that thread and have already set up the service as suggested.

As requested I have emailed support with the aip file and a log of the install.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ODBC Connectivity issue

Hello Pete,

I have looked into your .aip, but I am unable to fully test it because I don't have your custom action resources.
From your project and the verbose log I suspect that perhaps setting the CreateService custom action to "Deferred with no impersonation" might help you solve your issue.
If this doesn't help, please send us all your custom action resources so we can fully test and investigate the issue.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”