I can’t seem to get LibreOffice Base to open a MariaDB database with ODBC without crashing.
I’m guessing someone is using ODBC with Base and it’s working for you. If so could please say what versions of software you are using and suggest what to use to get it going.
Update: I have recieved reports from people who can open MySQL databases, using the MySQL ODBC connectors in Base. So I have changed the question to focus more narowly on MariaDB.
I have unixODBC and iODBC installed and working. I have 2 drivers (one for MariaDB and one for mdbtools). Also have 4 data sources (DSN’s Data Source Names) I’m testing and they all work with isql.
I’m using:
- Debian 8.6, Jessie-Stable
- MariaDB 10.1 (the latest)
- unixODBC v. 2.3.4 (the latest)
- iODBC v. 3.52.9-2 (the latest)
/etc/odbcinst.ini
[MariaDB ODBC 2.0 Driver]
Description = Maria DB
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
UsageCount = 1
/etc/odbc.ini
[mariadb-bigbase]
#DSN = mariadb-bigbase #this is the same as the previous line
Description = Bigbase
Driver = MariaDB ODBC 2.0 Driver
#Server = localhost #I found that this does not work on my system
Server = 127.0.0.1
Port = 3306
#Note: Socket is an option to Server/Port and is slightly faster
#Socket = /var/run/mysqld/mysqld.sock
#Option is said to be for compatibility with MySQL connector
Option =
#Not sure what this is for:
Stmt =
User = root
Password = test
Database = bigbase
1) I can confirm that the ODBC driver is working with isql as follows:
#> isql mariadb-bigbase
SQL> show tables
+--------------------------------------------------------------------------+
| Tables_in_bigbase |
+--------------------------------------------------------------------------+
| locations-all-old0 |
| us-zip-codes |
+--------------------------------------------------------------------------+
SQLRowCount returns 2
2 rows fetched
2) Next I open LibreOffice and select File | New to create a new database and get the Database Wizard.
From here I have tried two methods of connecting as follows:
attempted method A:
step 1) Connect to an existing database: MySQL
step 2) Connect using ODBC (Open Database Connectivity)
step 3) Name of the ODBC data source on your system: mariadb-bigbase
step 4) Enter user name, click Test Connection and enter password gives:
The connection was established successfully.
step 5) Select:
* Yes, register the database for me.
X Open the database for editing.
Then click finish and save 'New Database' in ~/Documents.
Result: "Due to an unexpected error, LibreOffice crashed. ...
attempted method B:
step 1) Connect to an existing database: ODBC
step 2) Name of the ODBC data source on your system: mariadb-bigbase
step 3) Enter user name, click Test Connection and enter password gives:
The connection was established successfully.
step 4) Select:
* Yes, register the database for me.
X Open the database for editing.
Then click finish and save 'New Database1' in ~/Documents.
Result: "Due to an unexpected error, LibreOffice crashed. ...
I have submitted a bug report for LO 5.2.2.2, but still hope to find a way to get this to work.
Also check this Q at the MariaDB site.