Home Forums Support Changing database

This topic contains 7 replies, has 2 voices, and was last updated by  Hillel Coren 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17765

    Walid
    Participant

    Dear Team,
    Due to an issue on our website, we changed the database.
    we still had the same creditials but the name of the database changed.
    when we changed the database name in the .dev file, we got to the setup page and it is like a new install. we thought that that will just upadte things, but when we finished we had a new installation!
    any help on how to keep the old site but just change to the new database!
    we use a self-hosting plan
    the latest version we think!

    #17766

    Hillel Coren
    Keymaster

    Not sure, if you’re seeing the setup page it means the app can’t find the database.

    #17767

    Walid
    Participant

    let’s say that the old database was myolddatabase.db
    now we created a new one mynewdatabase.db
    we imported the old database data in the new one.
    in the .dev file we changed the name of the database to the new one.
    could we have proceeded otherwise?
    Thank u

    #17768

    Hillel Coren
    Keymaster

    I assume you mean .env file but yes, that should do it.

    #17769

    Walid
    Participant

    yes, the .env file 🙂
    we uploaded the data in the db then we changed the info in the .env file and we tried to access! (but we rememebered that we didn’t change the info, so we did:) things happens:) )! so could it have been the opposite, we change the info in the .env file, we upload and then we try to access!
    thank you?

    #17770

    Hillel Coren
    Keymaster

    I’d suggest confirming that you can use the settings in the .env file to access the app’s database.

    #17771

    Walid
    Participant

    yes I can access…

    #17774

    Hillel Coren
    Keymaster

    Sorry, not sure…

    In the past similar problems have been reported where users had multiple installs and were modifying the wrong file.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Posted in: