Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 导入数据丢失
When using SQLyog to import a backup script exported from MySQL into TiDB, it indicates that the import was successful, but no data was written.
The table you mentioned doesn’t even exist.
How did you import it, by directly executing the SQL?
The table hasn’t been created.
What if you run the create table statement directly in the client? The table was not successfully created.
The script contains statements for creating tables, which are logical backup scripts exported from MySQL and executed directly on TiDB.
Running it independently is fine.
That shouldn’t result in a “table does not exist” error. If it still doesn’t work, you could comment out the drop table and create table statements in the SQL file, leaving only the insert statements for import.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.