Convert fbk (firebird) file to MySql

末鹿安然 提交于 2019-12-23 04:54:40

问题


I have firebird database file and I want to convert it into Mysql, but I don't know how. Can you help me how to convert it? Or can you give me the reference what software I have to use to convert it?

Thank you


回答1:


You have to use FBExport tool to generate a dump with inserts

FBExport.exe -D "c:\DB\WL.FDB" -U user –P password -Si -V TEST -F test.out
Where: 
Si – means “export to SQL inserts” format
V – table name to export
F – output filename

Be careful with dates in mysql. Export in the correct format. To export db in custom date format use:

$> FBExport.exe -D "c:\DB\WL.FDB" -U user –P password -Si -V TEST -F     test.out -J "Y-M-D" -K "H:M:S"
Where: 
J  - date format
K – time format

To import date to mySQL use SOURCE command:

$> mysql --user=root --password=password
$> use  database_name
$> SOURCE  c:\export\table_name.out

Ref: http://kosiara87.blogspot.nl/2011/03/export-data-from-firebird-into-pure-sql.html



来源:https://stackoverflow.com/questions/28912165/convert-fbk-firebird-file-to-mysql

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