-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect between Office 365 Excel and Mysql database #97
Comments
The Is the MySQL ODBC driver Intel 64bit only as implied it the directory path name and can be confirmed with the command:
As if so and Excel is an Intel only app the macOS Rosetta 2 needs to be installed on M1 machines for it to work. See this post on OpenLink ODBC Driver and iODBC usage on Apple Silicon M1 machines for more details. Note also that OpenLink provide MySQL ODBC Drivers for macOS with both Intel 64 and M1 arm64 binaries bundled and will work against Intel 64 or arm64 application on macOS M1 machines. |
Read here #29 at first
|
Hugh Williams, Thank you for the response. I noted there was only one suggestion on the Stack Exchange link you provided and I had tried something similar. I went through the process of disabling system integrity, shutdowns and reboots, csrutil disable and csrutil enable, and in-between those steps adding a symbolic link, but that failed since the /System/Preboot is read only. Without the correct bind commands from Apple, I'm hesitant to risk my computer in establishing the link in that read only portion of the software. To get what I did done was over a 16 step procedure and I'm not sure that is worthwhile for software that is being frequently updated. When I talked to Apple, they seemed to want to help, but pointed back to Microsoft. When I talked to Microsoft, they were aware that they had a problem, but didn't have a solution. In February 2023, Microsoft appeared to have the problem fixed in a Beta version of MS Office 365, but we are now beyond that version in stable and the ability to connect to an SQL database on a silicon MAC does not appear, nor does it appear on an Intel Mac that runs Sonoma. So I'm still researching and looking to see if I can solve this one. Again, thanks you for the response. |
Smalinin, just saw your comment after my last comment. Thanks, I'll give that a try. |
Smalinin, Just finished trying. As before works outside of Excel, but testing inside Excel yields the same error message. I think I need to fix that problem with '/System/Volumes/Preboot/Cryptexes/OS' but without Apple providing the proper commands and sequence I'm not willing to risk my computer, although Macs are very resilient. Again, thanks, appreciate all the help I can get. |
@BUMPRW |
Smalinin, Nope, moved it to ~/Library/ODBC. Will give it a try. Thanks |
Smalinin,
|
I have rechecked Compressed TAR Archive installer, it contains all files, that could be simply copy to /Library/ODBC/.. without additional fix, the library pathes use RPATH already, so it must work, I think. |
this is what tool looks like for ~/Library/ODBC/mysql-connector-odbc-8.2.0-macos13-arm64/lib Still have the same problem, but we gave it a try. Hope I have this right. I also compared to the original and except for the openssl 1.1 files it was the same. The tool output was identical, only openssl 3.0. |
@BUMPRW — I suggest that you code fence terminal output and similar blocks, as this generally helps with clarity. A line with just three backticks ( |
Tall Ted, or should i start off as: 'otool -L ~/Library/ODBC/mysql-connector-odbc-8.2.0-macos13-arm64/lib/libmyodbc8w.so' because I just normally 'cd' to the directory I'm working with |
Backticks ( Inline would look like
-- which would then look like this to us, as the readers --
This is particularly important when the blocks include characters which GitHub might interpret as Markdown, radically changing what is presented to your readers. Here, it just helps distinguish Terminal input/output Vs. human writing (yours or ours). |
Sergey,
|
Tall Ted,
|
@BUMPRW — On my US keyboards, |
Tall Ted,
|
Sergey,
|
First - your DSN must work in |
Sergey,
|
I updated macos to Sonoma 14.2.1 - it works also in MS Excell . |
Try to check your Excell app with Finder, open |
Sergey, Another strange behavior is that User DSN does not allow adding in Excel. I don't know of any strange configurations I've done with Excel, but I do use it frequently. |
Sergey,
|
I have MySQL server on an another host. |
Symptoms are completely different today. |
Note that when you use the Also note, I did not suggest wrapping all of your messages in code fences; only the CODE (e.g., To your continuing issues -- It is generally best to use only System DSNs, for a variety of reasons, including the way the sandboxing works on recent versions of macOS. Even if you need to switch to User DSNs or File DSNs later, I suggest you start by getting a System DSN working. You may also want to consider using a commercial ODBC driver, such as one from OpenLink Software (maintainer of iODBC). We have strong incentive to make our drivers work "out of the box", which you can test with a $0.00 (FREE!) 30-day evaluation license. Only you can decide whether continuing to tinker with |
Tall Ted, Thanks, I'll look into that, but I was trying to avoid the expense because I use databases infrequently. The connector saves time in converting the output to a ".csv" file. I have a few more thoughts regarding permission issues that I'm going to try. I have read some of your previous posts and have reset permissions on the ".ini" files, plus I'm going to re-read Sergey's notes. I reconfigured last night following his notes, I thought, but Excel is still not reading the odbc.ini file. Though my wife and I are much older, she is a grad-student and sometimes it is easier to deal with databases than large Excel files. It is too bad Borland's Dbase is no longer around, I wrote some pretty heavy duty stand-alone programs in that language back in the mid 80s. Again, Thanks, got to work on consolidating some "csvs", but if I solve my Dbase problem, I'll post a solution. P.S. How do you get this editor out of the code mode? It seems to randomly jump into that mode, so I'm spacing sentences |
"Code mode" is turned on and off (for either selected text or text as you're entering it) by clicking the |
Using: 2020 MAC mini M1 with OS14.2.1 Sonoma, also tested on 2019 MacBookPro INTEL
Using the Mysql drivers 8.2
iODBC tests successfully in standalone from DSN and System DSN
After starting Excel and from 'Data', 'GetData', 'From Data (Microsoft Query)'
On the MAC Mini unable to Add and configure a DSN, but that works fine on the MacBookPro
On both using the test function from system DSN the connection fails with: (the MacBookPro DSN test yielded the same result)
[iODBC][Driver Manager]dlopen(/usr/local/mysql-connector-odbc-8.2.0-macos13-x86-64bit/lib/libmyodbc8w.so, 0x0006): tried: '/usr/local/mysql-connector-odbc-8.2.0-macos13-x86-64bit/lib/libmyodbc8w.so' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/mysql-connector-odbc-8.2.0-macos13-x86-64bit/lib/libmyodbc8w.so' (no such file), '/usr/local/mysql-connector-odbc-8.2.0-macos13-x86-64bit/lib/libmyodbc8w.so' (file system sandbox blocked open())
Again both test fine outside of Excel in both system and DSN. I have contacted Microsoft and Apple and they don't have a clue, but Apple has all this information and more. I did attempt to add a subdirectory with sim link by doing a csrutil disable, but that section of the software is readonly.
I did try the Microsoft drivers and they appear to be broke and tech support at Microsoft didn't' disagree
Any help would be appreciated.
Richard Bump
The text was updated successfully, but these errors were encountered: