PHP 5.6.40 / Debian 9
Je souhaite réinstaller ma base Nextcloud que j'ai sauvegardée par un dump mais ça donne plein d'erreurs du genre :En effet, beaucoup de tables ont une structure du genre :
Code : Sélectionner tout - Visualiser dans une fenêtre à part ERROR 1071 (42000) at line 968: Specified key was too long; max key length is 767 bytesqui génèrent des enregistrements excessivement longs, surtout en utf8.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 CREATE TABLE `oc_dav_shares` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `type` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `access` smallint(6) DEFAULT NULL, `resourceid` bigint(20) unsigned NOT NULL, `publicuri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `dav_shares_index` (`principaluri`,`resourceid`,`type`,`publicuri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=COMPRESSED;
Le dump a bien sûr été généré sur la même machine.
Comment faire pour aboutir ?
Partager