# How to disable strict\_trans\_tables

**URL:** <https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957>\
**Category:** Community Support\
**Created:** [November 18, 2023, 4:32pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957 "2023-11-18T16:32:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stc2020](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@stc2020](https://forum.hestiacp.com/u/stc2020)\
**Post date:** [November 18, 2023, 4:32pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957/1 "2023-11-18T16:32:50Z")

</div>

# Hello. Please, friends and experienced people, help me solve this problem. How can I disable strict\_trans\_tables.

### **Important!**

The sql-mode **strict\_trans\_tables** is enabled in your mysql server, please contact your host provider to disable it.

---

<div class="post-metadata">

**Author:** ![linkp](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/linkp/32/2863_2.png) [@linkp](https://forum.hestiacp.com/u/linkp)\
**Post date:** [November 18, 2023, 5:32pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957/2 "2023-11-18T17:32:01Z")

</div>

> [@stc2020](#):
>
> contact your host provider

If you are running HestiaCP, you are the host provider!

Here is a link to the relevant MariaDB documentation.

> **[SQL\_MODE](https://mariadb.com/kb/en/sql-mode/)**
>
> Used to emulate behavior from other SQL servers.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [November 18, 2023, 5:33pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957/3 "2023-11-18T17:33:24Z")

</div>

Add this line into `/etc/mysql/my.cf` in section `[mysqld]`

```auto
sql-mode="ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

```

And restart mysql:

`systemctl restart mysqld`

---

<div class="post-metadata">

**Author:** ![stc2020](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@stc2020](https://forum.hestiacp.com/u/stc2020)\
**Post date:** [November 19, 2023, 1:16pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957/4 "2023-11-19T13:16:52Z")

</div>

Yes, it now works successfully. Thank you for your reply and help.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [December 19, 2023, 1:17pm UTC](https://forum.hestiacp.com/t/how-to-disable-strict-trans-tables/11957/5 "2023-12-19T13:17:38Z")

</div>

Closed on December 19, 2023, 1:17pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
