Security updates release
roundcube.net
Update 1.5.2 released
Free and open source webmail software for the masses, written in PHP
You didn't read the links I have shard, one of the solution was by @sec-is (did not checked by my self ) was:I couldn't find what exactly is the correct solution
Yep, that works. Even though I am on an old MariaDB 5.5.41 system on CentOs 7.
What did I do?
edit (nano) /etc/my.cnf.d/server.cnf
[mariadb]
innodb_large_prefix=true
innodb_file_format=Barracuda
innodb_file_per_table = ON
(the [mariadb] section was empty on beforehand)
then
systemctl restart mysqld
Then in phpmyadmni open database da_roundcube and run SQL commands:
SET SESSION innodb_strict_mode=ON;
CREATE TABLE `collected_addresses` (
`address_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00',
`name` varchar(255) NOT NULL DEFAULT '',
`email` varchar(255) NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`type` int(10) UNSIGNED NOT NULL,
PRIMARY KEY(`address_id`),
CONSTRAINT `user_id_fk_collected_addresses` FOREIGN KEY (`user_id`) REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
UNIQUE INDEX `user_email_collected_addresses_index` (`user_id`, `type`, `email`)
) ENGINE=INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
The table has now been created. I assume Roundcube will start using it from here on.
Yes I have read the links you shared, but I think the solution you proposed is for this type of error:You didn't read the links I have shard, one of the solution was by @sec-is (did not checked by my self ) was:
Code:Yep, that works. Even though I am on an old MariaDB 5.5.41 system on CentOs 7. What did I do? edit (nano) /etc/my.cnf.d/server.cnf [mariadb] innodb_large_prefix=true innodb_file_format=Barracuda innodb_file_per_table = ON (the [mariadb] section was empty on beforehand) then systemctl restart mysqld Then in phpmyadmni open database da_roundcube and run SQL commands: SET SESSION innodb_strict_mode=ON; CREATE TABLE `collected_addresses` ( `address_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', `name` varchar(255) NOT NULL DEFAULT '', `email` varchar(255) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `type` int(10) UNSIGNED NOT NULL, PRIMARY KEY(`address_id`), CONSTRAINT `user_id_fk_collected_addresses` FOREIGN KEY (`user_id`) REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE, UNIQUE INDEX `user_email_collected_addresses_index` (`user_id`, `type`, `email`) ) ENGINE=INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; The table has now been created. I assume Roundcube will start using it from here on.