This errors came when running the OCC:Repair command.
root@*myservername*:/var/www/cloud/public_html# sudo -u www-data php occ maintenance:repair
- Repair MySQL collation
- Change row format for oc_addressbooks ...
- Change collation for oc_addressbooks ...
In AbstractMySQLDriver.php line 125:
An exception occurred while executing 'ALTER TABLE `oc_addressbooks` CONVERT TO CHARACTER SET utf8mb4 COLLAT
E utf8mb4_bin;':
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 by
tes
In PDOStatement.php line 143:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 by
tes
In PDOStatement.php line 141:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 by
tes
maintenance:repair [--include-expensive]
It looks like not all of my table collations converted properly. Not all are utf8mb4_bin. Many are utf8_bin. Should I just clear out my Nextcloud and start over?
I reinstalled NextCloud. I got the 4-bit/emoji issue again. What exact steps can I take to fix this in a way that I don’t screw anything else up. Is it simply change it to Barracuda and then run the database collation change command or something more?
Thanks everyone for all your help. It is much appreciated.
The French poete Francois de Boileau said: Vingt fois sur le métier remettez votre ouvrage put your work twenty times upon the anvil
And i say:
Between each times, MAKE A BACKUP !