$ dpkg -s unixodbc-dev
ODBC libraries for UNIX (development files)
This package contains the development files (headers and libraries) for
unixODBC, an implementation of the Open DataBase Connectivity interface
for Unix systems. You should not need to install this package unless
you intend to develop C language applications which use ODBC, or to
compile ODBC-using applications from source.
unixodbc-dev doesn't have man.
Need to install unixodbc in order to actually have a odbc driver.
odbcinst package:
odbcinst package: to install driver(odbc) or Data source name (DSN)
$dpkg -s odbcinst
Description: Helper program for accessing odbc ini files
This package contains the odbcinst helper tool, which allows ODBC driver
packages to install their own driver settings.
TEMPLATE FILES
A typical driver template looks like this:
[MySQL]
Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
A DSN template looks like this:
[Sample DSN]
Description = Test MySQL connection
Driver = MySQL
Trace = Yes
TraceFile = /tmp/odbc.log
Database = junk
Server = localhost
Port = 3306
Socket =
$ odbcinst -q -d or odbcinst -q -s
$ odbcinst action object options
odbcinst updates the configuration files that control ODBC access to
database servers on the current host. It also maintains in
/etc/odbcinst.ini a count of the number of references to a particular
driver, which can be used to determine whether it should be removed
from the file (only when the reference count drops to 0).
I cannot see ODBCConfig (gui) ^ but I should (it is said to use unixodbc-bin). MariaDB doesn't support this currently.
unixodbc package
$ sudo apt install unixodbc
$ dpkg -L unixodbc
/.
/usr
/usr/bin
/usr/bin/isql #utility to submit SQL queries to a data source
/usr/bin/iusql #Unicode version of isql.
/usr/lib
/usr/lib/odbc #this
/usr/share
/usr/share/doc
/usr/share/doc/unixodbc
/usr/share/doc/unixodbc/AUTHORS
/usr/share/doc/unixodbc/NEWS.gz
/usr/share/doc/unixodbc/README
/usr/share/doc/unixodbc/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/isql.1.gz
/usr/share/doc/unixodbc/NEWS.Debian.gz
/usr/share/doc/unixodbc/changelog.Debian.gz
/usr/share/man/man1/iusql.1.gz
Note: I have copied libmaodbc.so (lib/libmaodbc.so)and changed Driver=/usr/lib/x86_64-linux-gnu/libmaodbc.soSQLDriverConnect should work, I could connect?
$ isql MariaDB-server # Doesn't work \G
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>
SQL> \s
[ISQL]ERROR: Could not SQLPrepare
$ isql MariaDB-server anel -v
Librebase
Start LibreOffice Base (database manager part of the LibreOffice productivity suite)
Base is a powerful database manager, part of the LibreOffice productivity suite.
It allows you to store, manage and maintain different collections of data.
Base makes it easy to keep track of your finances, customers, invoices, or even just the contacts in your address book!
For users that are new to databases, Base offers helpful wizards to create tables, queries, forms and reports.
It's a solution for people requiring an easy-to-understand, simple-to-use system.
For power users and enterprise requirements, it provides native-support drivers for some of the most-widely employed multi-user database engines:
PostgreSQL, MySQL and MS Access.
In addition, the built-in support for JDBC- and ODBC-standard drivers allows you to connect to virtually any other existing database engine as well.
Installing ODBC (Open Database Connector) driver
Links
[1] https://mariadb.com/kb/en/about-mariadb-connector-odbc/ [2] https://askubuntu.com/questions/167491/connecting-ms-sql-using-freetds-and-unixodbc-isql-no-default-driver-specified [3]]https://help.interfaceware.com/kb/904 [4] https://unix.stackexchange.com/questions/313858/connect-to-mariadb-mysql-and-ms-access-mdb-databases-via-localhost-using-unixo/313859#313859
Packages
unix-dev
andodbcinst
packages.unixodbc-dev package:
unixodbc-dev
doesn't have man. Need to installunixodbc
in order to actually have aodbc
driver.odbcinst package:
odbcinst
package: to install driver(odbc) or Data source name (DSN)I cannot see
ODBCConfig
(gui) ^ but I should (it is said to useunixodbc-bin
). MariaDB doesn't support this currently.unixodbc
packageCreating the datasource
Installing the driver ODBC for mariadb:
libmaodbc.so
(lib/libmaodbc.so)and changedDriver=/usr/lib/x86_64-linux-gnu/libmaodbc.so
SQLDriverConnect
should work, I could connect?Installing the DSN (Data Source Name):
Connecting with SQLConnect?
Librebase
Start LibreOffice Base (database manager part of the LibreOffice productivity suite) Base is a powerful database manager, part of the LibreOffice productivity suite. It allows you to store, manage and maintain different collections of data. Base makes it easy to keep track of your finances, customers, invoices, or even just the contacts in your address book!
For users that are new to databases, Base offers helpful wizards to create tables, queries, forms and reports. It's a solution for people requiring an easy-to-understand, simple-to-use system.
For power users and enterprise requirements, it provides native-support drivers for some of the most-widely employed multi-user database engines: PostgreSQL, MySQL and MS Access. In addition, the built-in support for JDBC- and ODBC-standard drivers allows you to connect to virtually any other existing database engine as well.
https://www.libreoffice.org/discover/base/ Needs
libreoffice-java-common
Building MariaDB connector from source:
Links: [1] https://mariadb.com/kb/en/building-mariadb-connectorodbc-from-source/ [2] git clone https://github.com/MariaDB/mariadb-connector-odbc.git
packages needed
openssl openssl-devel unixODBC unixODBC-devel
libssl-dev unixodbc odbcinst unixodbc-dev
In my case
unixodbc-dev
is already installedQuestions:
Looking into https://downloads.mariadb.org/connector-odbc/+releases/ there is no 3.17 as here https://downloads.mariadb.com/Connectors/odbc/ and even the latest here https://downloads.mariadb.org/connector-odbc/3.1.10/ is 3.10 not 3.17?
No MariaDB driver showed here http://www.unixodbc.org/ try synaptic package manager for ubuntu?