我刚接触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。(本地主机)
发布于 2018-06-01 22:49:25
你似乎有3个问题
Barracuda 1.您的DB表的格式较早,需要升级到
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
Unicode 2.您遇到了Unicode问题
从Moodle3.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
SSL3.您的站点不是
要使您的站点使用SSL,您需要从受信任的存储中获取SSL证书。
发布于 2018-04-24 18:57:03
在Google中搜索错误消息+“Moodle”的第一个结果:
https://stackoverflow.com/questions/49998785
复制相似问题