Jump to content

Recommended Posts


Posted

Essa nova atualização do MariaDB veio realmente com problemas.

Uma delas foi com o MySQL Strict Mode Detected, vários sites se depara com erros e você precisa colocar manual.

Descobri que a opção sql_mode não estava presente ou definido para valores em branco. quando isso é feito, o servidor usa padrões compilados. 
Eu adicionei o seguinte para /etc/my.cnf: 

==== 
sql_mode = NO_ENGINE_SUBSTITUTION 
====

E mudei a /usr/my.cnf arquivo para /root/my.cnf.usr 

o servidor agora mostra o modo estrito desativada: 

# mysql -u root
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.2.9-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SELECT @@GLOBAL.sql_mode;
+------------------------+
| @@GLOBAL.sql_mode      |
+------------------------+
| NO_ENGINE_SUBSTITUTION |
+------------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> SELECT @@SESSION.sql_mode;
+------------------------+
| @@SESSION.sql_mode     |
+------------------------+
| NO_ENGINE_SUBSTITUTION |
+------------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> quit;
Bye
====

DELTA SERVERS
SOLUÇÕES CORPORATIVAS!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?