Ask coding questions

← Back to all posts
Use seperate repl as db? (python)
mesquite2234

I'm creating a program called ScriptShare and I want to post it on repl talk, but the script and user files won't be saved so I want to use a different repl as the db. How?

Voters
mesquite2234
Comments
hotnewtop
AstOwOlfo

i recommend using an external storage solution like MySQL, MongoDB, etc.

mesquite2234
RYANTADIPARTHI

no db actually saves files. repl db is the best choice. In other huge projects containing web servers, you can use other dbs, but for now, repl db is best choice.

mesquite2234

@RYANTADIPARTHI Ok but I want the db to save things from the talk post, so I want a 2nd repl with the db and I'm asking how to connect them

RYANTADIPARTHI

@TommyVictory you can't connect two repls.

AstOwOlfo

disagree, repl has a problem with their files rolling back after extensive uptime @RYANTADIPARTHI

EpicGamer007

??? If you want to save data, you have to store in an actual database so... you probably have to use repldb. if u use repldb, u can use the db in your repl

mesquite2234

@EpicGamer007 I'm want to use a separate repl because the repl talk post creates copies of the files for security reasons.

EpicGamer007

@TommyVictory that still wont work.

mesquite2234

@EpicGamer007 I know. I want to have the other repl save the files (Or something like that). And this one talk to the other one for files.

EpicGamer007

@TommyVictory as i said, that wont work. its no different from using files in the same repl.

EpicGamer007

@TommyVictory you need to use a database

mesquite2234

@EpicGamer007 On the 2nd repl or this one?

EpicGamer007

@TommyVictory dont use a second repl. use the repl u are using right now

AstOwOlfo

long time no see @EpicGamer007

EpicGamer007