首页 > 解决方案 > 查看 Libreoffice Base 对 mysql 的查询

问题描述

我正在尝试使用连接到 MariaDB 的 Libreoffice Base 的主键创建一个表。具有主自动生成(我认为是递增)键的标准表。

但它失败了这条消息:

Error: 1064

You have an error in your SQL syntax; check the manual that corresponds to 
your MariaDB server version for the right syntax to use near
' PRIMARY KEY  ("ID"))' at line 1

有没有办法查看 LibereOffice 发送的查询?

标签: mysqlmariadblibreoffice-base

解决方案


在数据库中启用日志记录,到表使我能够看到错误的查询。

SET GLOBAL log_output = 'TABLE';
SET GLOBAL general_log = 'ON';

推荐阅读