script to convert mysql dump sql file into format that can be imported into sqlite3 db

后端 未结 9 2218
说谎
说谎 2020-11-29 03:07

I have an export SQL file containing tables and data from MySQL and I want to import it into a Sqlite 3 DB.

What is the best way to do that?

Just importing t

9条回答
  •  忘掉有多难
    2020-11-29 03:29

    works fine on Centos 5.3 64bit. once you have the output file load it like so:

    shell> sqlite3 file_name.db SQLite version 3.3.6 Enter ".help" for instructions sqlite> .databases seq name file


    0 main /current_directory/file_name.db
    sqlite> select * from table; . . . . . results... sqlite>.quit

提交回复
热议问题