How to convert MySQL database to SQLite in PHP?

I need PHP code to convert a database. I tried How to convert mysql to SQLite using PHP , but it has an answer

+4
source share
2 answers

Finally I found my solution. Save the sh file to https://gist.github.com/943776 and execute " ./mysql2sqlite.sh DBNAME --databases DBNAME -u DB_USERNAME -pDB_PASSWORD | sqlite3 database.sqlite " (without qoutes and with ``) in the php file Save both files in one folder

+9
source

Go to phpmyadmin click export database download as sql file.

Download it ....

go to your sql lite management software import the .sql file

done ...

+3
source

Source: https://habr.com/ru/post/1435449/


All Articles