Nextcloud 安装前的MariaDB设置

Nextcloud安装之前,除了需要mysql或、MariaDB建立数据库和用户授权,为了4-byte支持,以便在文件名和评论中使用Emojis等表情,最好提前进行设置,否则后续设置需要手工输入命令行设置。

以Nextcloud推荐的Mariadb为例,

MariaDB 10.3 or later

[mysqld]
innodb_file_per_table=1

MariaDB 10.2 or earlier

[mysqld]
innodb_large_prefix=true
innodb_file_format=barracuda
innodb_file_per_table=1

这样文件格式就是支持4-byte的barracuda,而不是原先默认不支持的Antelope了。

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>