如何解决moodle全新安装问题mysql_full_unicode_support#File_format和mysql_full_unicode_support#Large_prefix

2024-01-03

I am very new to Moodle. When i am trying to install this i got this issue(Please ref screenshot). enter image description here

任何人都可以帮我解决这个问题吗?

先感谢您。 奥姆卡


这是很常见的问题,人们经常遇到,甚至我也遇到过。安装 Moodle 最新 3.2+ 时,它会检查 MySQL 数据库中是否启用了对 utf8mb4 字符集的支持。 MySQL 中默认情况下不提供此功能。您需要在 mysql conf 中设置一些参数。

在基于 Linux 的系统上,您需要更改 my.cnf。这可能位于“/etc/mysql/”中。对 my.cnf 进行以下修改:

[client]
default-character-set = utf8mb4

[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix

character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
skip-character-set-client-handshake

[mysql]
default-character-set = utf8mb4

更改值后,重新启动 mysql,错误现在应该已修复。

请参考下面的文档

https://docs.moodle.org/32/en/MySQL_full_unicode_support https://docs.moodle.org/32/en/MySQL_full_unicode_support

https://mathiasbynens.be/notes/mysql-utf8mb4#character-sets https://mathiasbynens.be/notes/mysql-utf8mb4#character-sets

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何解决moodle全新安装问题mysql_full_unicode_support#File_format和mysql_full_unicode_support#Large_prefix 的相关文章

随机推荐