I am trying to move my data/tables/everything from a MySQL 6.3 CE Workbench to MySQL 8.0 CE.
When I just tried initally, I had and fixed this error - Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' .
Now I have a new error that I cannot figure out - ERROR 1359 (HY000) at line 1991: Trigger already exists.
I got this error trying to do Server->Data Import->Self Contained File into a completely empty database in MySQL Workbench 8. The only changes I made to the self contained file were the removing the NO_AUTO_CREATE_USER. I also tried after running
SET GLOBAL log_bin_trust_function_creators = 1;
in MySql.
Here's the exact dump code -
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER `tab`.`history_mapinvoiceitems_BEFORE_INSERT` BEFORE INSERT ON `history_mapinvoiceitems` FOR EACH ROW
BEGIN
set @lineitemid = new.lineitemid;
set @userIdInv = new.userIdinv;
END */;;
The very first line is the line that used to give me issues but since removing NO_AUTO_CREATE_USER, is fine. I also did a search to see if somehow this trigger was defined previously, but this line is literally the first occurrence of the word in the document.
Anyone else have this issue/fixed it?