我是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。 (本地主机)

最佳答案

您似乎有3个问题

1.您的数据库表采用较早的格式,需要升级到梭子鱼

Moodle为第一个问题创建了一个简单的修复程序,在继续升级之前,您可以从服务器上运行以下脚本,它将有问题的表升级为梭子鱼格式

以下命令将为您提供需要更新的表的列表

$ 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,您将需要从受信任的商店(例如entrust)获得SSL证书。

关于installation - Moodle 3.3.1全新安装-梭子鱼文件格式问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49998785/

10-12 05:43