我是moodle的新手,并尝试在我的Windows系统上安装moodle 3.3.1,但经过一些步骤后显示出一些错误。
mysql_full_unicode_support#File_format: Your database has tables using Antelope as the file format. Full UTF-8 support in MySQL and MariaDB requires the Barracuda file format. Please convert the tables to the Barracuda file format.
mysql_full_unicode_support#Large_prefix: For full support of UTF-8 both MySQL and MariaDB require you to change your MySQL setting 'innodb_large_prefix' to 'ON'. See the documentation for further details.
site not https: It has been detected that your site is not secured using HTTPS. It is strongly recommended to migrate your site to HTTPS for increased security and improved integration with other systems.
请帮我解决这些错误。我正在尝试使用xampp服务器在我的Windows系统上安装moodle。 (本地主机)
答案 0 :(得分:2)
您似乎遇到了3个问题
<强> 1。您的数据库表格格式较早,需要升级到Barracuda
Moodle为第一个问题创建了一个简单的解决方案,在继续升级之前,您可以从服务器运行以下脚本,它会将有问题的表升级为Barracuda格式
以下命令将为您提供需要更新的表列表
$ php /path/to/moodle/admin/cli/mysql_compressed_rows.php --list
然后运行修复
$ php /path/to/moodle/admin/cli/mysql_compressed_rows.php --fix
以下链接将为您提供步骤并指导您完成更新,上述脚本来自该链接
https://docs.moodle.org/28/en/Administration_via_command_line#Converting_InnoDB_tables_to_Barracuda
<强> 2。您遇到了Unicode问题
从Moodle 3.2开始,使用utf8mb4,需要进行一些更改,这些答案之前已经提供过,但这里只是以防万一。
首先需要编辑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服务并运行以下脚本:
$ php /path/to/moodle/admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci
然后修改config.php文件:
$CFG->dboptions = array(
…
'dbcollation' => 'utf8mb4_unicode_ci',
…
);
可以在以下位置找到文档:
https://docs.moodle.org/32/en/MySQL_full_unicode_support
第3。您的网站不是SSL
要使您的网站成为SSL,您需要从受托商店获取SSL证书,例如委托。
答案 1 :(得分:1)
Google首先在搜索结果中显示错误消息+“Moodle”: