4.从 MariaDB (MySQL) 迁移到 SQLite
常规
如何从 MariaDB 迁移到 SQLite
mysqldump \
--host=<dbhost> \
--user=<dbuser> --password \
--skip-create-options \
--compatible=ansi \
--default-character-set=utf8 \
--skip-extended-insert \
--compact \
--single-transaction \
--no-create-db \
--no-create-info \
--hex-blob <database> \
| grep -a "^INSERT INTO" | grep -a -v "__diesel_schema_migrations" \
| sed 's#\\"#"#gm' \
| sed -sE "s#,0x([^,]*)#,X'\L\1'#gm" \
> mysql-to-sqlite.sql最后更新于