Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tomasosho's avatar

i used sqlite for a social media project

The size just keeps increasing at an exponential level. it's about 18gig now. I am using a shared hosting platform. is there a way i could convert from sqlite to mysql without losing any info?

0 likes
9 replies
tomasosho's avatar

I think for best practice, it's best you run everything from scratch. I think vue.js is an excellent choice, especially when you have to deal with follow, unfollow, messaging and others.

Tray2's avatar
Tray2
Best Answer
Level 73

You need to shut the site down for a while and then you need to export every table into SQL and then run the migration on your MySQL server and then import table all the tables.

It's not as tricky as it sounds.

This tool might work as well

https://www.rebasedata.com/convert-sqlite-to-mysql-online

1 like
tomasosho's avatar

Thanks it's been a real pain. Will try this.

martinbean's avatar

@tomasosho I don’t think you should be dishing out any “best practice” advice, given your question 😂

In answer to your question, you’re going to need to migrate to a “proper” relational database engine such as MySQL or Postgres. You’ll need to find a utility that converts a dump of your SQLite database to the database engine of your choice. Given you have 18 GB of data, I’m afraid this is probably going to occur quite a bit of downtime to prevent losing any data during the migration.

1 like
tomasosho's avatar

Lol... I was trying to do that, then I lost all my data, I just have a little piece left now though.

martinbean's avatar

@tomasosho Mate, you’re not going to find a “free online converter” that’s going to convert an 18 GB SQlite database to nice MySQL import scripts for you.

1 like
tomasosho's avatar

Thanks, i was able to convert it offline.

Please or to participate in this conversation.