#multiple databases

31 messages · Page 1 of 1 (latest)

edgy shadow
#

is there a way i can change the database in mongodb that a grasscutter server uses? i want to test something that may corrupt my data so i wanna be safe and split them up.

umbral plover
#

config.json > databaseInfo collection, change the name

#

change it for server and game

edgy shadow
#

ty, and is there a way i can duplicate a mongodb collection? so i dont have to give myself all my artifacts again

umbral plover
#

just export from your other database and import into the new one, leave out the _id field when exporting'

#

they would only be for an account with the same uid unless you change them before re-importing

umbral plover
#

items are tied to the uid that owns them, so if you just export/import they'll all still be tied to the same uid they were before

umbral plover
#

that's just the number, so on a new database you'd just need to be using an account with the same uid

edgy shadow
#

i see

umbral plover
#

otherwise you'd need to change all of them

edgy shadow
#

yeah ill use the same uid

umbral plover
edgy shadow
#

and how do i import?

umbral plover
#

big green add data button right next to export

edgy shadow
#

tysm :>

umbral plover
#

No problem

edgy shadow
#

different problem now but after updating my mongodb all my data seems to be gone? 🥲

umbral plover
#

You switched the database to a new one in config.json right? No data is carried over, it's fully new

edgy shadow
#

i did, but i checked compass and literally everything is gone

#

as a result of the update

umbral plover
#

the grasscutter database will still be there unless you dropped it or maybe if you only changed one instead of both of the database names in config.json

edgy shadow
#

it has nothing to do with the cloining

#

it had to do with the updating mongodb

umbral plover
#

what exactly do you mean by updating it? You reinstalled it?

edgy shadow
#

yeah i think so

#

i downloaded the latest mongodb installer and installed it

#

updated to 6.0.2 or smth