nextcloud / documentation

📘 Nextcloud documentation
https://docs.nextcloud.com
Other
482 stars 1.65k forks source link

Can I or can't I change the 4 byte character database? #11914

Closed EveryOtherUsernameWasAlreadyTaken closed 2 weeks ago

EveryOtherUsernameWasAlreadyTaken commented 2 weeks ago

The documentation at https://docs.nextcloud.com/server/23/admin_manual/configuration_database/mysql_4byte_support.html says:

  1. Set the mysql.utf8mb4 config to true in your config.php: $ sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"

When I did that, I got a message that contradicts itself:

17:15:15 $ sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"
Nextcloud is in maintenance mode, hence the database isn't accessible.
Cannot perform any command except 'maintenance:mode --off'

System config value mysql.utf8mb4 set to boolean true

On one hand side, it says, I can't do anything except disabling maintenance mode, on the other hand side, it says it set the boolean to true. So, what is correct? If the code is not changed, the documentation should at least mention that I get a warning.

kesselb commented 2 weeks ago

Thanks for your report.

I changed the wording for 26 and 27 a while ago: https://github.com/nextcloud/server/pull/37925.