Installation 安装moodle时出错

Installation 安装moodle时出错,installation,moodle,Installation,Moodle,在本地服务器上安装moodle时遇到错误。 错误显示 Debug info: Table 'performance_schema.session_variables' doesn't exist SHOW VARIABLES LIKE 'innodb_file_per_table' [array ( )] Error code: dmlreadexception 堆栈跟踪: line 474 of /lib/dml/moodle_database.php: dml_read_exception

在本地服务器上安装moodle时遇到错误。 错误显示

Debug info: Table 'performance_schema.session_variables' doesn't exist
SHOW VARIABLES LIKE 'innodb_file_per_table'
[array (
)]
Error code: dmlreadexception
堆栈跟踪:

line 474 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1088 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1527 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 332 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->get_record_sql()
line 308 of /lib/ddl/mysql_sql_generator.php: call to mysqli_native_moodle_database->is_compressed_row_format_supported()
line 542 of /lib/ddl/database_manager.php: call to mysql_sql_generator->getAddFieldSQL()
line 74 of /mod/data/db/upgrade.php: call to database_manager->add_field()
line 726 of /lib/upgradelib.php: call to xmldb_data_upgrade()
line 432 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1742 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()

我正在使用php 7.02、mysql 5.7.19和moodle 3.0.10

打开mysql安装文件夹,然后转到bin文件夹,然后打开my.ini并

添加以下行

show_compatibility_56=ON

我不是问题的作者,但我也有同样的问题,你的回答对我帮助很大!成功了!非常感谢你,伙计!上帝保佑你!