Answer the question
In order to leave comments, you need to log in
Why is there an error when importing to JSON NOT NULL?
I am importing the database to timeweb hosting.
An error occurs during import:
This piece of code looks like this
--
-- Структура таблицы `advertisement_categories`
--
-- Создание: Дек 20 2017 г., 12:05
--
DROP TABLE IF EXISTS `advertisement_categories`;
CREATE TABLE `advertisement_categories` (
`id` int(11) NOT NULL,
`category_name` varchar(255) DEFAULT NULL,
`image_cat` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`lft` int(11) NOT NULL,
`rgt` int(11) NOT NULL,
`depth` int(11) NOT NULL,
`categories_title` varchar(255) DEFAULT NULL,
`meta_json` JSON NOT NULL,
`description` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `advertisement_categories`
--
Answer the question
In order to leave comments, you need to log in
Check your MySQL version. Since version 5.7 JSON has appeared
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question