0

I need a DSN to connect to a MariaDB (Ubuntu's replacement for MySQL) database and seem to have run into some confusion about ODBC drivers on Ubuntu (and Linux in general).

Specifically, Flora-2 requires a DSN to connect to enable persistence:

    ?- ?Module[attach(?DSN,?DB,?User,?Password)]@pm.

This action associates the data source described by an ODBC DSN with the module. If ?DB is a variable then the database is taken from the DSN. If ?DB is bound to an atomic string, then that particular database is used. Not all DBMSs support the operation of replacing the DSN’s database at run time. For instance, MS Access or PostgresSQL do not. In this case, ?DB must stay unbound or else an error will be issued. For other DBMS, such as MySQL, SQL Server, and Oracle, ?DB can be bound.

Bringing up ODBCCreateDataSourceQ4 to create the DSN, the Driver window shows no drivers. The Help states "ODBC Drivers must be registered when/after they are installed on your system." This sent me down a rabbit hole where I found myself confronting a number of questions:

  1. Trying find out what it means to "register" an ODBC driver takes one down a long list of Windows-related topics -- all of which are of no use to getting an Ubuntu ODBC driver "registered". The word "register" seems to derive from the "Windows Registry". What is the Linux counterpart to the Windows "Registry"?
  2. Why wouldn't the package manager automatically "register" the ODBC driver when it is installed?
  3. There are a number of ODBC "drivers" that seem to be application-specific (LibreOffice, Erlang, etc.) which seems to contradict the very meaning of "driver". Why would a "driver" be application-specific?
  4. The closest thing I could find to an application-independent ODBC driver that ODBCCreateDataSourceQ4 might recognize is myodbc, but the myodbc package has been removed from Ubuntu! Isn't there something that is supported by the standard Ubuntu repositories for this?
  5. I'm aware that I can get source code, compile and install a replacement at the MariaDB Foundation website but:
    1. This seems a bizarre adaptation for something that seems so-essentially part of such a widely-used package's function. The open source model for Ubuntu seems to have failed here. What's going on?
    2. One must provide user registration details like the kind of business one is involved with to download this source code. Again, this seems very strange in an open source environment given the essential nature of database connectivity and ODBC's prominent place in that connectivity. What's going on?

0 Answers0