Reverse engineering a mysqldump output with MySQL Workbench gives “statement starting from pointed line contains non UTF8 characters” error

落爺英雄遲暮 提交于 2019-12-23 02:36:47

问题


I have a huge .sql file from a mysqldump command. I ran this file in MySQL workbench and it seems to create the tables fine. But it gives the following error log

ERROR: Line 49076: SQL statement starting from pointed line contains non UTF8 characters. Statement skipped.

ERROR: Line 49077: SQL statement starting from pointed line contains non UTF8 characters. Statement skipped.

ERROR: Line 49078: SQL statement starting from pointed line contains non UTF8 characters. Statement skipped.

// Loads more skipped statements //

ERROR: Line 55722: SQL statement starting from pointed line contains non UTF8 characters. Statement skipped.

Is this something to worry about? it seems that the tables all build correctly.

I can't even get in and have a look at the lines that contain non UTF8 characters since the file is so big I can't open it with my installed text editors. If I could grep lines 49076 - 55722 and write to a txt file that would be ideal but I'm not sure how to grep specific lines.

Edit 1

So after running the suggested

sed -n '49076,49078p' dumpfile.sql > mydump.txt

I found that this section is huge for 3 lines of code (5.27 MB). They contain insert into statements that become unreadable at the end.

Sample

M@ÙØ©Å”mT@œ ´`wM@¯\r™þÙlT@”cØM@÷îˆlT@DòjNM@Çægö-lT@ìzÐÜØM@iW¥\0lT@̸I5ýL@ùÌlT@Ä„8ÿDøL@÷]•MlT@6øëãôL@…

theses appear at the ends of the statements,

// actual data above for insert into statement //
81.752505329767487,59.287405619999873 81.742705329767475)))
','\0\0\0\0\0\0\0Œ\0\0\0\0\0\0\0\0\0\0\0|Àó ¸E@€]ß< C)@ìXÓåb·E@±Sa·B)
@$®³E@ Þÿ¦J)@üsqDŒ²E@X\ZÃQ=L)@DUìX:²E@îî¶VN)@üQtM²E@0¥À·4Q)@<wéO°²E@€vR3U)@<™æF&³
// seemingly random characters for thousands of lines bellow// 

Is this a corrupted copy? or some other underlying problem with the way my database is condfigured?

来源:https://stackoverflow.com/questions/31185528/reverse-engineering-a-mysqldump-output-with-mysql-workbench-gives-statement-sta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!