0

我有一些从 mysql 数据库导出到 csv 的数据,我现在想将这些数据重新导入到 mysql 数据库中。

除了时间戳之外,所有其他字段都是正确的0000-00-00 00:00:00

下面是数据 1)作为 CSV 和 2)导入 mysql db 后的屏幕截图(使用 sequel pro 查看)

知道如何解决这个问题吗?

csv 导入

后续导入

4

1 回答 1

1

Without knowing the charset of your database, the default locale, language and table structure this is not a complete answer. However, Problem could be in the formatting and delimiter used in the incoming date field in csv. The format in the csv should follow the expected database format i.e. 2013-05-24 23:59:59 (what is shown seems to be 24/05/2013 23:59:59) for example updating the forward slash (/) to - as well as arranging the date fields as expected by the default format of your database or defined by the table. Also review you default date format expected by the data to be put in the table

于 2013-06-11T21:06:15.077 回答