【问题标题】:Moodle 3.3.1 fresh install - Barracuda file format issueMoodle 3.3.1 全新安装 - 梭子鱼文件格式问题
【发布时间】:2018-04-24 10:01:40
【问题描述】:

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

【问题讨论】:

标签: installation moodle file-type


【解决方案1】:

你似乎有 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 证书。

【讨论】:

    【解决方案2】:

    错误消息 +“Moodle”在 Google 中的第一个搜索结果:

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

    【讨论】:

      猜你喜欢
      • 2015-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多