我正在迁移magento 1.9到2.x,当我尝试使用migrate:data命令迁移数据时,它会因以下错误而停止
[Zend_Db_Statement_Exception]
SQLSTATE [HY000]:常规错误:1419您没有SUPER权限并且启用了二进制日志记录(可能想要使用安全性较低的log_bin
_trust_function_creators变量),查询为:CREATE TRIGGER trg_catalog_compare_item_after_insert在每次行上插入catalog_compare_item之后
BEGIN
INSERT INTO m2_cl_catalog_compare_item(catalog_compare_item_id
,operation
)VALUES(NEW.catalog_compare_item_id,' INSERT')ON DUPLICATE KEY UPDATE
操作=' INSERT';
结束`
在我的mysql服务器中,log_bin设置为off并且我使用超级用户。任何人都可以帮我解决这个问题吗?谢谢!
答案 0 :(得分:0)
要解决此问题,请将log_bin_trust_function_creators
参数的值设为1。
有关更多信息,log_bin_trust_function_creators
一个人可以在SQL下执行:
mysql -u USERNAME -p
set global log_bin_trust_function_creators=1;
可能的原因:RDS MySQL的最新版本已禁用触发器(而第一代显然已将其启用了默认设置)。