How to Convert MySQL to SQLite

MD Aminul Islam Feb 02, 2024
  1. Convert MySQL to SQLite
  2. An Alternative Way to Convert MySQL to SQLite
How to Convert MySQL to SQLite

Sometimes we need to convert our database from MySQL to SQLite for various purposes like using some extra features. This article will show the easiest and simple way to convert a MySQL database into an SQLite database.

Convert MySQL to SQLite

For this purpose, we will use a third-party software named DBConvert. You can download it from here.

Follow the below steps to convert MySQL to SQLite.

  • Open the DBConvert software.
  • In the "Source", select the MySQL database and provide the necessary server information.

    Capture01

    Confirm the tables and click on Next.

  • In the Destination, select the SQLite and browse the location where the database file needs to be stored. Click on Next.

    Capture02

  • Lastly, finish the Customization, Execution, and Scheduling with the necessary information and complete the conversion.

An Alternative Way to Convert MySQL to SQLite

This is an alternative way to convert a MySQL database to SQLite. If you are using Linux, you need to download the code from this link.

Now run the script using to command as follows.

./mysql2sqlite.sh Your_Database | sqlite3 Your_Database.sqlite

Please note that this article is for switching MySQL to SQLite.

MD Aminul Islam avatar MD Aminul Islam avatar

Aminul Is an Expert Technical Writer and Full-Stack Developer. He has hands-on working experience on numerous Developer Platforms and SAAS startups. He is highly skilled in numerous Programming languages and Frameworks. He can write professional technical articles like Reviews, Programming, Documentation, SOP, User manual, Whitepaper, etc.

LinkedIn

Related Article - SQLite Convert