在项目中需要将mysql迁移到sqlite3中,此时需要作数据转换
准备工作
下载mysql2sqlite转换工具
https://github.com/dumblob/mysql2sqlite/archive/refs/heads/master.zip
下载sqlite3
https://www.sqlite.org/download.html文章来源:https://www.toymoban.com/news/detail-632425.html
转换
命令行中输入如下命令文章来源地址https://www.toymoban.com/news/detail-632425.html
1、cd "C:\Program Files\MySQL\MySQL Server 5.7\bin"
2、mysqldump -uuser -ppassword test > test.sql
3、./mysql2sqlite test.sql | sqlite3 test.db
到了这里,关于mysql转sqlite3的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!