MySQL Forums
Forum List  »  Newbie

Error while importing MySQL dump
Posted by: Rafael Trevisan
Date: May 29, 2024 07:06AM

Hi, i'm trying to migrate a dump from a 5.7 server to a 8.0, but i'm getting syntax errors that kills the import, the problem is, i can fix the errors on the source DB, but i cannot see them all at once, neither ignore the errors with "-f", is there a way to see all the errors at once? i've adjust the charset and collation but erros still occur, the original database is kind of a mess, i get errors like this one:

ERROR 1064 (42000) at line 6613: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''<div>Sistema vinculou responsavel em 20/06/2023 15:27:13</div> <div>Sistema vin' at line 1

I can only dump the DB at night to not slow down the production, and that make the process a lot slower.



/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

Above is the header from the dump, i've tried changing the names to latin1 (as is on the original DB) but it did not help.

Options: ReplyQuote


Subject
Written By
Posted
Error while importing MySQL dump
May 29, 2024 07:06AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.