Installation Moodle 3.3.1新安装-Barracuda文件格式问题

Installation Moodle 3.3.1新安装-Barracuda文件格式问题,installation,moodle,file-type,Installation,Moodle,File Type,我是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 conver

我是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。(localhost)

谷歌首次搜索错误消息+“Moodle”:


您似乎有三个问题

1。您的DB表采用早期格式,需要升级到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
下面的链接将为您提供步骤并指导您完成更新,上面的脚本来自该链接

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', 
… 
);
文件可在以下位置找到:

3。您的站点不是SSL


要使您的站点成为SSL,您需要从受信任的存储(如Trust)获取SSL证书。

您可以看到关于如何修复它的答案