Ask coding questions

← Back to all posts
Can you create a database with Repl?
CarrollN (8)

Can you write a database with Repl?


TheDrone7 (1779)

You cannot create a database with/in, but you can link your app to an external database to your app on

abc3354 (224)

In fact, I think that it is possible to have a database on replit
But there is some corruption with files used by programs and it is recommended to use an external database

TheDrone7 (1779)

it's not some corruption with files, it's a drawback of being host, they reset the files everytime your repl is run.

kpostal10 (31)

@TheDrone7 I want to correct the statement "they reset the files everytime your repl run". That is not true (Unless things have changed) What happenes when you click run is it sends all the files / code of to a virtual server. Thats how you can make files with a repl but will not see them. The repl itself will not look at the code after it is done running to modify the base repl.

They ( team) are working on making some type of data storage coming soon (tm). What you can do is connect to an external database from the repl and that is fine.

TheDrone7 (1779)

@kpostal10 I understand but was in no mood of typing that long comment, so ended it in short :P.