首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Moodle 3.3.1全新安装- Barracuda文件格式问题

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

Stack Overflow用户
提问于 2018-04-24 18:01:41
回答 2查看 6.9K关注 0票数 2

我刚接触moodle,并尝试在我的windows系统上安装moodle 3.3.1,但在执行了一些步骤后,它显示了一些错误。

代码语言:javascript
复制
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。(本地主机)

EN

回答 2

Stack Overflow用户

发布于 2018-06-01 22:49:25

你似乎有3个问题

Barracuda 1.您的DB表的格式较早,需要升级到

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

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

代码语言:javascript
复制
$ php /path/to/moodle/admin/cli/mysql_compressed_rows.php --list

然后运行修复程序

代码语言:javascript
复制
$ 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

Unicode 2.您遇到了Unicode问题

从Moodle3.2开始,使用的是utf8mb4,需要进行一些更改,这些答案以前已经提供过了,但这里只是以防万一。

您首先需要编辑my.cnf文件并添加以下内容:

代码语言:javascript
复制
[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服务并运行以下脚本:

代码语言:javascript
复制
$ php /path/to/moodle/admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci

然后修改您的config.php文件:

代码语言:javascript
复制
$CFG->dboptions = array( 
… 
'dbcollation' => 'utf8mb4_unicode_ci', 
… 
);

文档可以在以下位置找到:

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

SSL3.您的站点不是

要使您的站点使用SSL,您需要从受信任的存储中获取SSL证书。

票数 4
EN

Stack Overflow用户

发布于 2018-04-24 18:57:03

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

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49998785

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档