Welcome to Centmin Mod Community
Become a Member

MariaDB check mysql strict mode

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by arlon, Nov 15, 2016.

  1. arlon

    arlon Member

    95
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    3:06 PM
    1.13.6
    10.1
    i'm using mariadb 10.0.28 and i have a problem when backing up my database using CMS, i have contacted my developer that i must disable mysql strict mode, how to check my database strict mode? and how to disable it?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    6:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What errors you getting during backup ? What CMS is it ?

    You should always for reliability use mysqldump to backup mysql data and not rely on php interfaced mysql backups as they can timeout or result in incomplete backups.

    MariaDB does NOT set STRICT_TRANS_TABLES or STRICT_ALL_TABLES sql modes by default so shouldn't cause problems. What's output of this command
    Code (Text):
    mysqladmin var | grep sql_mode | tr -s ' '
    

    you should get something like this without STRICT_TRANS_TABLES, STRICT or STRICT_ALL_TABLES sql modes listed
    Code (Text):
    mysqladmin var | grep sql_mode | tr -s ' '
    | sql_mode | NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
    

     
    Last edited: Nov 16, 2016