Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MySql
 ODBC connection in new version mysql
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  17:46:32  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
What 32 bit app are you using?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  17:48:59  Show Profile  Reply with Quote
I was referring to the 32bit application pool that we enabled in IIS.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  17:52:14  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
You enabled the pool to work with 32 bit apps (which works for Access), but that was it. It's still a 64 bit IIS. I have a pretty similar config and I had no issues whatsoever.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  17:59:19  Show Profile  Reply with Quote
So you're sure you have the 64bit version of the driver using?

To check, the 32bit versions are installed in:
C:\Program Files (x86)\MySQL\Connector ODBC 5.1
C:\Program Files (x86)\MySQL\Connector ODBC 3.51

And the 64bit version in:
C:\Program Files\MySQL\Connector ODBC 5.1
C:\Program Files\MySQL\Connector ODBC 3.51

by default.

You have to make sure the 32bit version is not installed, to ensure it is the 64bit version you are using. If the drivers are listed in the folders for the 32bit, then you have the 32bit installed as well, and most likely using the 32bit.

Let me know.

Support Snitz Forums

Edited by - Davio on 03 June 2012 17:59:46
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  18:05:51  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
I have had the 64 bit version installed right from the beginning of my usage of Windows 7 (almost 3 years now). I recently upgraded the 5.1 driver (9 May) and it seems the 32 bit version was installed too. I still have a few local test forums running under 3.51, of which I have only the 64 bit version.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  18:12:57  Show Profile  Reply with Quote
Well I'm stumped on it as well. Will keep searching and see if anything comes up that could help.

EDIT: Just a small tip, realized there are 2 versions of the ODBC Data Source Administrator. The 64bit and the 32bit.
The 64bit is located here: C:\WINDOWS\System32\odbcad32.exe
The 32bit is located here: C:\WINDOWS\SysWOW64\odbcad32.exe

The 32bit drivers showed up in the 32bit version of the ODBC Data Source Admin. That's why I didn't see them listed in the 64bit version.

Support Snitz Forums

Edited by - Davio on 03 June 2012 18:19:19
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  18:14:03  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
David, if 32 bit works for you, don't waste any more time, I'd say. It doesn't affect anything you do. As long as you have a working solution...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  18:20:55  Show Profile  Reply with Quote
quote:
Originally posted by ruirib

David, if 32 bit works for you, don't waste any more time, I'd say. It doesn't affect anything you do. As long as you have a working solution...

I was more doing it for debugging purposes, for anyone else who might have a similar problem in the near future.
But yeah, I guess I can leave it there for now.

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  19:02:52  Show Profile  Reply with Quote
Sorry Rui, I can't help it. I couldn't put this one down, as the debugging part of me wouldn't rest.

The error using a system dsn with the 64bit drivers had given me this error:
quote:
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
This error means, either the driver is 64bit and the app is 32bit, or vice versa.

Since I know I installed the 64bit driver, I checked my Task Manager to see if IIS was a 32bit or 64bit process. And I notice, the DefaultAppPool is running as a 32bit process.

See screenshot: http://img41.imageshack.us/img41/6352/iisv.jpg

So the 32bit app is accessing the 64bit DSN connection which can't work. (still doesn't explain how you got it working. ah well.)

Anyways, leaving this alone again. lol

Support Snitz Forums

Edited by - Davio on 03 June 2012 19:04:57
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  19:16:06  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Then I should get the same and I don't. My Process Explorer does not show me that info for w3wp, funnily enough.

Did you install the 64 bit version of MySQL?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  19:19:37  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
I just set Enable 32 bit apps in my IIS to false and ran one of my local Snitz forums. No issues whatsoever. You only need the 32 bit setting if you use Access, which there is hardly any need, at least on my case.

You can try this too.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  19:44:30  Show Profile  Reply with Quote
lol that works rui. I had set the 32bit setting when I was testing with Access. Thought that meant I needed this setting set to true to run classic asp.

The defaultapppool is now running in 64bit mode and using the 64bit myodbc drivers with the dsn-less connection string.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  19:53:42  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
No, had you started with MySQL and I wouldn't have advised the 32 bit thing. The puzzling bit is that things work for me one way or the other.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 June 2012 :  20:00:11  Show Profile  Reply with Quote
Well, you can set the 32bit setting per site. So for your site using Access, you can turn it on and for your site using MySQL, you can turn it off. Would make sense if you have it that way.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 June 2012 :  20:41:30  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
I had it as a general setting, actually. That's why I find this weird.

Anyway, you're all set now, so no need to keep worrying about this :):


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07