Je crois que j’ai trouvé: ma base est en charset utf8mb4, qui requiert 4 byte par CHAR, en mysql n’arrive pas à créer une table avec une clé de type VARCHAR(255), qui est plus grande que la limite de 1000 bytes. Du log SPIP:
2024-05-12 14:07:49 10.20.0.24 (pid 417038) :Pri:WARNING: SPIP ne connait pas les Charsets disponibles sur le serveur mysql. Le serveur choisira seul.
2024-05-12 14:07:49 10.20.0.24 (pid 417038) :Pri:ERREUR: Erreur mysql 1071
2024-05-12 14:07:49 10.20.0.24 (pid 417038) :Pri:ERREUR: Erreur mysql 1071
2024-05-12 14:07:49 10.20.0.24 (pid 417038) :Pri:ERREUR: Erreur mysql 1071
2024-05-12 14:07:49 10.20.0.24 (pid 417038) :Pri:ERREUR: Erreur 1071 de mysql: Specified key was too long; max key length is 1000 bytes
in /home/daniel/web/spip.alfa.cielito.uy/public_html/ecrire/base/create.php L74 [sql_create(),creer_ou_upgrader_table(),alterer_base(),creer_base(),install_bases(),install_etape_3_dist(),exec_install_dist()]
CREATE TABLE IF NOT EXISTS `daniel_spip`.spip_meta (
nom VARCHAR (255) NOT NULL,
valeur text DEFAULT '',
impt ENUM('non', 'oui') DEFAULT 'oui' NOT NULL,
maj TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (nom)) ENGINE=MyISAM
Je vais essayer avec une base utf8 (qui, si j’ai bien compris, ne requiert que 3 bytes par char), mais ce serait pas mal que SPIP s’installe sans modifier les valeurs par omission actuelles, que les millenials puissent faire des SPIP avec emojis…