Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
# mysql -uroot db_zona < db_zona_dump.sql ERROR 1709 (HY000) at line 515: Index column size too large. The maximum column size is 767 bytes.
# mysql -u root -e "show variables" | grep innodb_large_prefix innodb_large_prefix ON
innodb_file_format = Barracuda innodb_large_prefix = 1 innodb_file_per_table = ON
innodb_file_format = Barracuda innodb_file_format_max = Barracuda innodb_large_prefix = 1 innodb_file_per_table = ON
innodb_file_format Barracuda innodb_file_format_max Barracuda innodb_large_prefix ON innodb_file_per_table ON
CREATE TABLE `users` ( `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '(DC2Type:uuid)', `login` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(511) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `second_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(127) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `api_token` varchar(511) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `vk_id` varchar(511) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `ok_id` varchar(511) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_1483A5E9AA08CB10` (`login`), UNIQUE KEY `UNIQ_1483A5E9E7927C74` (`email`), UNIQUE KEY `UNIQ_1483A5E9444F97DD` (`phone`), UNIQUE KEY `UNIQ_1483A5E97BA2F5EB` (`api_token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */;