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 - 2024
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 …») |
Admin iph (обсуждение | вклад) |
||
Строка 4: | Строка 4: | ||
Enter password: | 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, | 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', | + | `Opt` int(10) DEFAULT '0', |
− | `Rozn1` int(10) DEFAULT '0', | + | `Rozn1` int(10) DEFAULT '0', |
− | ' at line 7 | + | ' at line 7 |
Означает, что на сервере используется старая версия mariadb и нужно выполнить обновление до 10.3.x или выше.<br /> | Означает, что на сервере используется старая версия mariadb и нужно выполнить обновление до 10.3.x или выше.<br /> | ||
'''MariaDB JSON Datatype is available from Version 10.2.7+''' . https://mariadb.com/kb/en/library/json-data-type/ | '''MariaDB JSON Datatype is available from Version 10.2.7+''' . https://mariadb.com/kb/en/library/json-data-type/ |
Версия 07:37, 9 сентября 2019
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+ . https://mariadb.com/kb/en/library/json-data-type/