【发布时间】:2017-01-06 08:53:59
【问题描述】:
我正在尝试使用当前在第一代云 SQL 上运行的数据库转储填充第二代云 sql 实例 (v5.7)。它有一些触发器:
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER `resourcetypetransaction_AFTER_INSERT` AFTER INSERT ON `resourcetypetransaction` FOR EACH ROW
BEGIN
INSERT INTO `resourcetypetransactionlog` SELECT *
FROM `resourcetypetransaction`
WHERE id = NEW.id;
END */;;
尝试将数据库插入 2nd gen 时的结果是:
shinkansen:sql ameyer$ cat gae_2016-08-30T08\:21\:33.sql | mysql -u root -pxxxx -h xxxx napoleon;
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1419 (HY000) at line 1067: You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
有没有办法在第二代启用这样的触发器?
干杯, 安德烈斯
【问题讨论】:
标签: google-cloud-sql