Buongiorno a tutti
cercando di creare questa tabella
phpmyadmin mi restituisce questo errore:Codice:CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(320) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `username` varchar(35) COLLATE utf8_unicode_ci NOT NULL, `birthdate` date NOT NULL, `bio` varchar(4800) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `creation_datetime` datetime NOT NULL DEFAULT current_timestamp(), `status` enum('Verification pending','Verified','Deletion pending','Deleted') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Verification pending', `profile_public` enum('Y','N') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N', `first_password` varchar(40) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
premetto che ho cercato di cambiare il collate del database da quello predefinito a utf8, ma me lo cambia automaticamente in utf8mb4.Codice:#1071 - Specified key was too long; max key length is 767 bytes
Cosa posso fare per risolvere?
Grazie a tutti e buona giornata

LinkBack URL
About LinkBacks

