MySQL - 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 'json DEFAULT NULL

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 07:38, 9 сентября 2019; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

MySQL - 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 'json DEFAULT NULL

Ошибка при импорте дампа sql:

Enter password:
ERROR 1064 (42000) at line 92: 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 'json DEFAULT NULL,
`Opt` int(10) DEFAULT '0',
`Rozn1` int(10) DEFAULT '0',
' at line 7


Означает, что на сервере используется старая версия mariadb и нужно выполнить обновление до 10.3.x или выше.
MariaDB JSON Datatype is available from Version 10.2.7+