MySQL ODBC on Mac OS X 10.8 - mysql

I've found some problems while trying to connect to a remote MySQL database using MySQL's ODBC connector.
I'm on Mac OS X 10.8.2 and I've installed MySQL ODBC connector 5.2.4. Every time I tried to connect using this ODBC my connection gets refused.
Does anyone have the same issue? Is there any workaround?
Edit: I tested the ODBC connection with iODBC and I got the following result:
SQLDriverConnect = [iODBC][Driver Manager]dlopen(/usr/local/lib/libmyodbc5.so, 6): image not found (0) SQLSTATE=00000
SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003

The MySQL Connector/ODBC 2.5.6 for Mac OS X comes only in versions for 10.6 (Snow Leopard) and 10.7 (Lion). I don't know about any official support from MySQL for Mac OS X versions 10.8 (Mountain Lion) or even 10.9 (Mavericks)!
Paid licensed solutions put more effort on supporting the latest Mac OS X versions... I have tried myself the evaluation version Actual ODBC Pack for Mac OS X with Mavericks and could get 3 rows per recordset. You can try that and if it works see if it's worth paying for unlimited rows.

Are you using the ODBC Administrator utility or the command line?
http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-macosx.html
Edit: I don't think I noticed "remote" server. Does that remote server had a user with permissions to connect from your IP address?

#Jason Sundram (OP): Just FYI, Oracle has (in response to my filing bug reports about their documentation) updated the Mac OS X, mysql 5 installation instructions for Connector/ODBC, at:
https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html
Following those steps might be helpful. They worked for me in OS X 10.9 (Mavericks). But, I'm also not trying to do precisely what you are, with your environment, so I'm not sure what effect reinstalling as instructed there may have on your problem.

Related

Mysql ODBC connector not available in stamps.com datasource

Today, we upgraded stamps.com software to version 17.5. This build requires that ODBC drivers be 64bit. I didn't think that was a problem. System is 64bit, and downloaded the latest MySQL ODBC 64Bit version 8.0.22. ODBC Data Source Administrator loads up, and I can access it. I create the datas ource (tested) but when I try to assign it via Stamps.com I get the error...
"Unable to connect to the selected data source. Check if you need to add a Username and Password"
Odd. Again, I can test connection via ODBC Data Source Administrator. It selects the proper database, etc. The driver is MySQL ODBC 8.0 ANSI Driver (Version 8.00.22.00).
If I try to "Create a new data source" via Stamps.com. Click 'Other/Advanced (SQL,etc)' and click 'Add', I do not see any MySQL drivers anywhere the options.
I've completely uninstalled re-installed 8.0.22 multiple times.
ADDITIONAL INFO
If I don't try to create a new DSN through Stamps.com but rather select an existing one, but click 'configure'. I get the following errors.
"The setup routines for the MySQL ODBC 8.0 ANSI Driver ODBC driver could not be found. Please reinstall the driver."
Followed by..
"---------------------------
Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed
---------------------------
Errors Found:
The specified DSN contains an architecture mismatch between the Driver and Application"
So it seems like the MySQL ODBC driver is still 32 bit? I clearly installed 64 bit, and the system is 64 bit, so not sure. It's possible the original ODBC driver was 32 bit from a year ago, but like I mentioned, I have removed those .dll via uninstall.
ADDITIONAL INFO 2
I'm wondering if I'm chasing the wrong 32 bit application. Under ODBC Data Source Administrator, in the About tab,
For About the ODBC core components..
Administrator C:\Windows\system32\odbccp32.dll
Control Panel Startup C:\Windows\system32\odbcad32.exe
Cursor Library C:\Windows\system32\odbccr32.dll
Driver Manager C:\Windows\system32\odbc32.dll
Localized Resource DLL C:\Windows\system32\odbcint.dll
Unicode Cursor Library C:\Windows\system32\odbccu32.dll
So it looks like the 'core' for ODBC is 32 bit? Looking into how to update these for 64bit. Hmmm... based on my initial research, those .dll/.exe are 64bit since they're in system32 and not in sysWOW64. Seems counter intuitive?
Any suggestions?
After contacting support, they informed me that ODBC is not supported with 17.5. So not sure - why I needed to upgrade to 64bit, and why it states that my ODBC drivers need to be 64bit, since it's not compatible.
Here is what needs to be done. Download Stamps clean tool:
https://support.stamps.com/outgoing/clean.exe
Then run key tool to remove any registry values:
https://support.stamps.com/outgoing/key.exe
Then finally, you need to install version 17.4
http://support.stamps.com/outgoing/stamps174.exe
Roll back to the 32bit ODBC drivers.
After this fiasco, we've implemented better protocols. Basically secondary machine with Stamps.com running on it and will test future updates there before rolling out to our primary production machine.
We are in the same boat.... after updating to the Stamps.com version 17.5 we have been unable to get our ODBC MySQL server connection working.
We have tried all combinations of older vs new 64 bit MySQL drivers. We have tried installing the 32-bit version of Stamps 17.5. It actually allows us to configure the connection and select the correct tables and columns we want, but when we trigger a lookup we get an error saying 64bit drivers are required.
Same error on 32-bit Stamps.com vs 64-bit Stamps.com.
We are contacting stamps.com support now and I will update this when/if we find anything additional.
Is there a solution then for this? We were actually using for the past 12 years the old ActiveX solution - but you HAD to use MS-Explorer. So we were exploring using stamps.com ORDERS solution with MySQL ODBC. Tried both the 32-bit stamps.com app (with the 32bit ODBC drivers), and the 64-bit stamps.com (with the 64bit ODBC drivers). The 32-bit at least allow you to complete the field mapping - which tells me it was connected to the database to be able to read the schema. But when you go to actually IMPORT anything, you get the "...you'll need to install the latest 64-bit ODBC drivers..." which I have already tried.
If you download and use the 17.4 version (as suggested above), what happens when you MUST upgrade stamps.com (which does happen about once every 2 years when the USPS changes some fundamental stuff).
Any solutions anyone? We really want off our ActiveX/PDK (12 year old) solution.
Just ran into the same issue this week, albeit with the MS SQL drivers. Doesn't matter whether I install the 64bit or 32bit Stamps.com software (when the site will download the 32bit version at all... it doesn't for me at the moment, only 64bit). Either way, I get the message saying I need to install the 64bit ODBC drivers. And clicking "More info" just takes me to the home Help page, not to a related article. The article detailing 64bit ODBC is pretty useless since it just says you need to install the drivers, but you can view it here: https://stamps.custhelp.com/app/answers/detail/a_id/7244/kw/64-bit%20ODBC/related/1
I called support, and they said it's a known issue but that there's no workaround currently.
UPDATE 2/17/2021
I just talked to Tier 2 support, and there's a new version out the resolves the ODBC error. The download page still says 17.7, but it's actually 17.7.1. Installing it resolved the error for me and I am now able to import orders via ODBC. (I installed the 32-bit version at the recommendation of the support tech I spoke with, I have not tried with the 64-bit version.)
Also, the 32-bit download is working again.

MySQL Community server 5.6.26 10.9 download has 10.8 in it?

I am trying to get MySQL running on GM of El Capitan. When I go to MySQL downloads for the Community server there are 2 .DMG archives - one for Mac OS X version 10.9 and one for 10.8. However when I download the 10.9 .dmg archive and open it it contains the 10.8 server. If you look at the 2 MD5 hashes for the 2 .DMGs they are the same.
So is there no 10.9 version of MySQL? Is there no difference? I can install it, but when I try and start it it fails on El Capitan.
I just want to make sure I am not missing something given there is no 10.10 and certainly not yet a 10.11 .DMG archive.

MySQL Workbench 6.2.5 quit unexpectedly on MAC OS X 10.8.5

I have installed MySQL Workbench 6.2.5 on MAC OS X 10.8.5. However, when I want to open this application, it is not opening and just mentions "MySQLWorkbench quit unexpectedly."
Any idea on how to fix this?
Update:
I installed the 6.1.7 version and its working fine. It would be still great if someone could answer this question regarding the updated versions. Even the bug reports available on bugs.mysql.com did not solve this problem.
Try deleting the following folder
~/Library/Application Support/MySQL/Workbench
once the application is relaunched the folder will be recreated.

SQLCMD for windows 2003

I need to install SQLCMD utility on a windows 2003 Standard Edition SP 2 server. I tried to install download it from http://www.microsoft.com/en-in/download/details.aspx?id=36433. When I try to install, it asks for ODBC driver 11 for SQL Server. This driver is available at http://www.microsoft.com/en-in/download/details.aspx?id=36434. However this is not supported for Windows 2003 OS. I tried to look for the older version of SQLCMD utility that might use an older driver compatible with Windows 2003 server, but could not find it.
Can you pls. suggest any alternative or give any other suggestion?
Faced the same problem, solution that worked for me on my server 2003:
First installation of sqlncli.msi from https://www.microsoft.com/en-us/download/confirmation.aspx?id=16978 (you have to expand the Install instructions)
Then installation of SqlCmdLnUtils.msi (different from MsSqlCmdLnUtils.msi which failed) from the same page https://www.microsoft.com/en-us/download/confirmation.aspx?id=16978

Mysql Command line not working on mac

When I try to access mysql command line on my mac it gives me this error - it doesn't matter what mysql command, username, password, server or I use either:
Launch of "mysql" failed: the PowerPC architecture is no longer supported.
This happened right after I installed Mac OS X lion. I am using MAMP Pro - I am upgraded to the latest version: 2.0.3- as my stack and I was wondering if anyone had any solutions for me. This is kind of a priority since I need it to handle large mysql imports.
BTW, I don't have a powerpc. I have intel core duo 2.66ghz
Try downloading and reinstalling MySQL from http://www.mysql.com/downloads/mysql/. Depending on your machine, you'll want to either grab the Mac OS X ver. 10.6 (x86, 64-bit) or Mac OS X ver. 10.6 (x86, 32-bit) version.
Maybe you should install another version of mysql or you can install xampp at
http://www.apachefriends.org/en/xampp-macosx.html