Bug #29964 Registering as sudo on Mac OS X 10.4 registers in "User", not "System"
Submitted: 22 Jul 2007 19:53 Modified: 26 Jul 2007 14:26
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S2 (Serious)
Version:3.51.17 OS:MacOS
Assigned to: Jim Winstead CPU Architecture:Any

[22 Jul 2007 19:53] Kent Boortz
Description:
Running "myodbc3i" as sudo to register the driver, will
write into "~/Library/ODBC/odbcinst.ini", not the expected
"/Library/ODBC/odbcinst.ini".

How to repeat:
Download the Mac OS X TAR package, make sure
that /Library/ODBC/ and ~/Library/ODBC/ are empty,
and run

  sudo myodbc3i -a -d -t"MySQL ODBC 3.51 Driver;Driver=/usr/local/lib/libmyodbc3.so;Setup=/usr/local/lib/libmyodbc3S.so;"

Suggested fix:
Introduce the option to install into "system" space
[23 Jul 2007 18:43] Kent Boortz
Addition of -ds and -du for System/User registering

Attachment: ds-opt.patch (application/octet-stream, text), 1.10 KiB.

[26 Jul 2007 14:26] MC Brown
A note has been added to the 3.51.18 changelog: 

ixed an issue where the myodbc3i would update the the user ODBC configuration file (~/Library/ODBC/odbcinst.ini) instead of the system /Library/ODBC/odbcinst.ini.