169 похожих чатов

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.

5 ответов

10 просмотров

You can try do migration from replication. Master 5.7 - slave 8.0.

Rafael-Trevisan Автор вопроса
PavelDBA
You can try do migration from replication. Master ...

Would the replication ignore syntax errors? i don't they are caused by the version and just by dog water data

Rafael Trevisan
Would the replication ignore syntax errors? i don'...

No, it didn't ignore syntax error, but perhaps it helps you founded errors faster and corrected their. For example, foreign key names longer than 64 characters are no longer supported from MySQL 8.0.

Rafael-Trevisan Автор вопроса
PavelDBA
No, it didn't ignore syntax error, but perhaps it ...

Got it, most of the errors will come from unsanitized user input, but i will look into that. The I/O on server is already fucked, would be wise to run a replication in it?

Rafael Trevisan
Got it, most of the errors will come from unsaniti...

Is this server still in use for production right now?

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
70
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
25
Книга Юрова В.И пойдёт для обучения?
Botsman
24
Люди добрые, помогите с идеями, потому что свои закончились. У клиента падает софтина в момент инициализации модуля OtlEventMonitor на RegisterWindowMessage('Gp/OtlTaskEvents/...
Михаил Усков
7
$params = [ 'formid' => 'feedbackForm', 'formTpl' => '@CODE: <form class="form-validate" data-id="ajax_form"> <fieldset class="margin-bottom-md"> ...
Pathologic
1
> Примечательно, что новый владелец удаляет из GitHub любые жалобы, указывающие на подозрительную активность или смену владельца, и, видимо, рассчитывает на то, что пользовате...
Alex Sherbakov
2
GridView fully ignored first parent(SizedBox), and take width from second parent(Container). How can I constrain GridView by first parent? Widget build(BuildContext context) {...
Hamster
1
Hey there Which is the best Linux destro for developers (coding)? To my research on reddit, they said Linux mint is good for mid level spec and Ubuntu for high Lev hardwar...
Wiz 🪄
11
И ещё вопрос: можно ли типа как на дос как-то запариться и с помощью прерываний выводить текст, вместо функции printf ?
НѣкъиⰘижєжєиꙁъвьсєсвѣтьноѣсѣтиѥсть•
34
а мы ещё не созрели до того, чтобы создать отдельный чатик про настройку редакторов?
Cheese Syrowiecki
16
Карта сайта