this post was submitted on 20 Jun 2023
13 points (93.3% liked)

Lemmy

2172 readers
4 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/1374138

I'm thinking about setting up my own (bare metal) Lemmy instance to play around with it, but it seems to require PostgreSQL. Everything else on my system uses MySQL, and I don't really want to run 2 separate database services. I guess I would also be fine with using an SQLite file, but that's not ideal.

Has anyone managed to set up a Lemmy instance with MySQL instead of PostgreSQL? Are you aware of any PostgreSQL to MySQL or SQLite compatibility layers?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago

Diesel, the ORM package used by Lemmy, does have a MySQL backend, but all of the database migrations and performance considerations factored into the schema design are specifically written for PostgreSQL. It would be an absolutely massive undertaking to change this. It would be easier to create an entirely new threadiverse application from scratch.