We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Base: "The database does not support relations." [closed]

asked 2017-02-03 19:42:11 +0200

EasyTrieve gravatar image

updated 2017-02-04 00:17:26 +0200

When selecting Tools | Relationships... why might I get the following message?

image description

I'm seeing it after I create a new LO Base with a JDBC connection to my MariaDB database. I can connect to my tables, but when I select Tools | Relationships... I get this error message.

The funny thing is that I have another .odb file that connects to the very same database, with the same setup parameters (i.e. DataSource, JDBC driver class, User Name and Password) that properly shows the relationships diagram when I select Tools | Relationships....

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-03 22:55:13.996246

2 Answers

Sort by » oldest newest most voted

answered 2017-02-03 19:42:32 +0200

EasyTrieve gravatar image

updated 2017-02-03 19:50:53 +0200

There are two methods to connect to a MySQL/MariaDB database using JDBC. One method works perfectly. The other method appears to work, in that you can edit your tables, but it does not allow editing relationships, and furthermore linked sub-forms don't work as expected.

So when setting up your connected database do not choose JDBC directly, rather first choose MySQL, then in the next screen choose JDBC and proceed from there.

image description

I have a more complete answer to document this here.


  • ODBC is broken with a known bug and has to my knowledge not yet been fixed.

  • Also I noticed that after upgrading to LO, the native MySQL connector option is gone.

  • And unlike MS Access the relationship editor when used w/ MySQL/MariaDB only appears to work with InnoDB database engine databases (i.e. it won't work with ISAM databases.) In other words it does not allow table-to-table relationships to be set up unless there is underlying relationship support in the database engine. The reason one might want to connect to and use ISAM is because it is much faster than InnoDB, like for example if you are using it under a web site, and trying to use LO as a development front end.

edit flag offensive delete link more

answered 2017-05-12 10:49:48 +0200

BlueBike gravatar image

I think that the answer of Easy Trieve is rather good already. Maybe it is of interest the type of table in the mysql DB or Maria DB. For mysql that has to be innodb engine type. So other types are not supported also not the default myisam type.

edit flag offensive delete link more


Good point. Yes, this also needs to be taken into account. In my case above they were both innodb, the one that worked and the one that failed.

EasyTrieve gravatar imageEasyTrieve ( 2017-05-12 18:17:43 +0200 )edit

Question Tools

1 follower


Asked: 2017-02-03 19:42:11 +0200

Seen: 1,023 times

Last updated: May 12 '17