https://github.com/bleenco/sqlite2mysql
SQLite3 dump to MySQL dump converter
https://github.com/bleenco/sqlite2mysql
Last synced: 6 months ago
JSON representation
SQLite3 dump to MySQL dump converter
- Host: GitHub
- URL: https://github.com/bleenco/sqlite2mysql
- Owner: bleenco
- License: mit
- Created: 2018-11-22T15:43:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-24T06:43:30.000Z (almost 7 years ago)
- Last Synced: 2025-03-22T22:24:07.734Z (7 months ago)
- Language: Perl
- Size: 6.84 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlite2mysql
SQLite3 dump to MySQL dump converter.
### Exporting from SQLite3 and importing to MySQL
First, make a dump of SQLite3 database:
```sh
sqlite3 db.sqlite .dump > db.sql
```Then, run `sqlite2mysql.pl` script to convert dump to MySQL format:
```sh
./sqlite2mysql.pl db.sql > mysql-db.sql
```Hopefully, everything went smooth, now:
Open additional terminal instance, run below two commands and leave it open during import:
```sh
mysql -u username -p
set global net_buffer_length=1000000;
set global max_allowed_packet=1000000000;
```and now on first terminal instance:
```sh
mysql -u username -p database_name < mysql-db.sql
```