执行 link.exe 时出错_EduSoho 升级8.7.0 出错错误无法访问情况二 数据库错误

错误如图
执行升级/安装脚本时发生了错误:
An exception occurred while executing ' INSERT INTO biz_answer_question_report (id, identify, answer_record_id, assessment_id, section_id, item_id, question_id, score, total_score, response, status, comment) SELECT a.id, concat_ws('_', a.resultId, a.questionId), a.resultId, a.testId, '0', if(b.item_id is null, 0, b.item_id), a.questionId, a.score, '0', conver_question_answer(b.answer_mode,a.answer), CASE a.status WHEN 'noAnswer' THEN 'no_answer' WHEN 'none' THEN 'reviewing' WHEN 'partRight' THEN 'part_right' WHEN 'right' THEN 'right' WHEN 'wrong' THEN 'wrong' ELSE 'reviewing' END, a.teacherSay FROM testpaper_item_result_v8 a LEFT JOIN biz_question b ON a.questionId = b.id WHERE a.type <> 'exercise' LIMIT 0, 80000; ': SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION www_jiaoyu18_cn.conver_question_answer does not exist

f24fe2c56f3e3c7113ddec2681ef75c2.png

问题解析
根据手动创建程序返回错误: MySQL 返回: #1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
判断是因为安全策略导致的,修改相关配置即可解决方案
执行命令 SET GLOBAL log_bin_trust_function_creators = 1;
EduSoho 升级8.7.0 出错错误无法访问情况二 数据库错误

错误如图

执行升级/安装脚本时发生了错误:

An exception occurred while executing ' INSERT INTO biz_answer_question_report (id, identify, answer_record_id, assessment_id, section_id, item_id, question_id, score, total_score, response, status, comment) SELECT a.id, concat_ws('_', a.resultId, a.questionId), a.resultId, a.testId, '0', if(b.item_id is null, 0, b.item_id), a.questionId, a.score, '0', conver_question_answer(b.answer_mode,a.answer), CASE a.status WHEN 'noAnswer' THEN 'no_answer' WHEN 'none' THEN 'reviewing' WHEN 'partRight' THEN 'part_right' WHEN 'right' THEN 'right' WHEN 'wrong' THEN 'wrong' ELSE 'reviewing' END, a.teacherSay FROM testpaper_item_result_v8 a LEFT JOIN biz_question b ON a.questionId = b.id WHERE a. type <> 'exercise' LIMIT 0, 80000; ': SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION www_jiaoyu18_cn.conver_question_answer does not exist

b6735aeceda99790596af3d3c2c18f5e.png

问题解析

根据手动创建程序返回错误: MySQL 返回: #1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 判断是因为安全策略导致的,修改相关配置即可

解决方案

执行命令

SET GLOBAL log_bin_trust_function_creators = 1;

升级完成

b6735aeceda99790596af3d3c2c18f5e.png

升级完成

c9d47bf50882e9545467ce9dfbd9e556.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值