I’ve upgraded my Nethserver today and with it came an upgrade to Nextcloud 15.0.7. In the Nextcloud update I’m now seeing the following warning:
MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL
Since Nextcloud is running on Nethserver I’m hesitant to make any changes without requesting a solution from the Nethserver support team. Could you assist in advising me what needs to be done in my database and the commands I’ll need to run to remove this warning?
Thank you in advance for assistance you can provide me.
Thank you @mrmarkuz for your reply and link to a possible solution.
One comment that intrigues me is about waiting for an update from Nethserver to correct this warning? Is that something Nethserver can confirm will occur in the near future? If this warning is not critical and doesn’t impact my Nextcloud running on Nethserver I’d rather not make any changes to my database if Nethserver will clear this warning for us in a future release.
It’s always a good idea to ask at the forum. Also I would install a test-server at a virtual environment, do a snapshot of the test server and install the update here first. Cause of this is, that not everybody has the same system and so it could happen that it works for everybody but not for you. If so, you can post your errors and we try to find a workaround for your problem, before you have it on a production server.
I see that Nextcloud 16 is out now so I’ll wait to upgrade to Nextcloud 16 before I think about making any database changes. And the suggestion to do this on a test server first is always a good idea!
As for making sure that nextcloud is the only thing installed using MariaDB…how do I know? I have the following apps installed on my Nethserver:
Email
Instant Messaging
Nextcloud
Webtop
Roundcube
MariaDB
Is Nextcloud the only app that uses the MariaDB based on the apps I have installed?
If the warning is not critical I’m tempted to ignore it. But I don’t like seeing warning messages on my Nextcloud…maybe my OCD but it makes it look messy for me. What does this warning mean? Is there a time when my MariaDB/Nextcloud should be able to handle 4-byte characters?
When would we use emojis in Nextcloud Apps? I have the Nextcloud Java Chat app installed so perhaps emojis won’t work in there (not that it matters). I also use Onlyoffice to display documents and edit them in Nextcloud. Is that another example of not being able to use emojis (again…not that I need to use emojis in my documents either).
Reading Nextcloud docs, it seems the change could also affect database backups:
If you use mysqldump make sure to add the --default-character-set=utf8mb4 option. Otherwise your backups are broken and restoring them will result in ? instead of the emojis, making files inaccessible.