maraidb无法更改/禁用sql模式

问题描述 投票:0回答:1

嗨,我甚至需要通过my.cnf添加在mariadb中禁用严格模式,但无法正常工作,我做了以下工作

SET sql_mode = '';
SET GLOBAL sql_mode = '';

输出,然后我重新注视了mariadb

+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| sql_mode      |       |
+---------------+-------+

os : CentOs 7
db : maraidb 10.4
mysql sql centos mariadb
1个回答
0
投票

您需要通过SSH编辑my.cnf

/etc/my.cnf file

在其中添加以下行

sql_mode=NO_ENGINE_SUBSTITUTION

现在重新启动MariaDB

© www.soinside.com 2019 - 2024. All rights reserved.