My Oracle Support Banner

Invalid character string when importing data into new MySQL Database Service instance (Doc ID 2870848.1)

Last updated on JANUARY 30, 2024

Applies to:

MySQL Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

Why do we get the following error when importing a mysql shell dump?

Import error: MySQL Error 1300 (HY000): Invalid utf8mb4 character string: 'AAABBB': LOAD DATA LOCAL INFILE /path/to/dumpfile.tsv.zst' REPLACE INTO TABLE `database1`.`table1` CHARACTER SET 'utf8mb4' FIELDS TERMINATED BY ' ' ESCAPED BY '\\' LINES STARTING BY '' TERMINATED BY '\n' (`column1`, `column2`, `column3`)
 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.