Export a MySQL Database to SQLite Database

前端 未结 7 1420
太阳男子
太阳男子 2020-11-28 08:33

Please help me with exporting a MySQL database into a SQLite database.

7条回答
  •  天涯浪人
    2020-11-28 08:47

    I manualy created the table structure in sqlite database.

    Than I uploaded the data with teh following command:

    mysqldump -u root {database} {table} --no-create-info --skip-extended-insert  --complete-insert --skip-add-locks  --compatible=ansi | sed "s/\\\'/''/g" |sqlite3 flora.db
    

    I had to use sed to fix a different apex encoding in the two databases

提交回复
热议问题