Posted in sqlite
3347
4:33 am, August 3, 2023
 

mysql to sqlite notes

 

### MySQL to SQLite converter
https://pypi.org/project/mysql-to-sqlite3/
https://github.com/dumblob/mysql2sqlite
https://stackoverflow.com/questions/3890518/convert-mysql-to-sqlite

```
pip install mysql-to-sqlite3
sudo apt install mysql-to-sqlite3
mysql2sqlite --help

https://github.com/techouse/mysql-to-sqlite3

mysqldump --skip-extended-insert --compact aion > aion_mysql.sql
    ./mysql2sqlite aion_mysql.sql | sqlite3 aion.db
```

Converts MySQL dump to SQLite3 compatible dump (including MySQL `KEY xxxxx` statements from the `CREATE` block).

## [](https://github.com/dumblob/mysql2sqlite#usage)Usage
https://github.com/dumblob/mysql2sqlite

[[mysql2sqlite]] file

  1. Dump MySQL DB
        
        ```
        mysqldump --skip-extended-insert --compact [options]... DB_name > dump_mysql.sql
        # or
        #mysqldump --no-data -u root -pmyPassword [options]... DB_name > dump_mysql.sql
        ```
        
    2. Convert the dump to SQLite3 DB
        
        ```
        ./mysql2sqlite dump_mysql.sql | sqlite3 mysqlite3.db
        ```

Confirmed working creating a dump from mysql and into sqlite. Yay.

working commands:

sudo mysqldump --skip-extended-insert --compact aion > aion_mysql.sql
./mysql2sqlite aion_mysql.sql | sqlite3 aion.db

View Statistics
This Week
47
This Month
129
This Year
754

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
“If you just sit and observe, you will see how restless your mind is. If you try to calm it, it only makes it worse, but over time it does calm, and when it does, there’s room to hear more subtle things. You see so much more than you could see before. It’s a discipline; you have to practice it.”
Steve Jobs
Random CSS Property

float

The float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from the normal flow of the page, though still remaining a part of the flow (in contrast to absolute positioning).
float css reference