MYSQLDUMP : ERROR 3140 (22032) at line 36: Invalid JSON text: "Invalid escape character in string."

(Doc ID 2320708.1)

Last updated on OCTOBER 24, 2017

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Symptoms

Dumps created with mysqldump that contain certain control characters are not properly escaped during the process (or even when viewing the db via mysql-cli) resulting a corrupt .sql file that is not importable.

 

mysql ebdb < dump.sql
ERROR 3140 (22032) at line 36: Invalid JSON text: "Invalid escape character in string." at position 3 in value for column 'foobar.meta'.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms