diff --git a/doc/DATABASE_CONFIG.md b/doc/DATABASE_CONFIG.md index d98d839..0bc1572 100644 --- a/doc/DATABASE_CONFIG.md +++ b/doc/DATABASE_CONFIG.md @@ -5,7 +5,7 @@ Your database configurations are stored in the `.env` file at the root of your p 1. **Open the `.env` file.** 2. **Modify the values** for `DB_USER`, `DB_PASSWORD`, and `CONNECT_STRING` with your new database credentials and connection string. ```plaintext - DB_USER=new_user + DB_USER=admin DB_PASSWORD=new_password CONNECT_STRING=your_new_connection_string ``` @@ -16,24 +16,21 @@ Your database configurations are stored in the `.env` file at the root of your p ``` 4. **Optional**: Update `HTTPS_PROXY` and `HTTPS_PROXY_PORT` if your application uses a proxy for database connections. -### Apply Changes - -For the changes to take effect, you need to restart your application. -```bash - npm run dev -``` - - -### Troubleshooting +### Updating Wallet Database Connection -If you encounter issues after changing your database configuration: +To change your wallet database connection: -- **Review the `.env` file**: Ensure there are no typos in the variable names or values. -- **Check database credentials**: Verify that the user, password, and connection string are correct and that the database user has the necessary permissions. -- **Inspect logs**: Look for any error messages in your application logs that might indicate what went wrong. - -### Notes +1. Go to `server/utils/db`. +2. Delete the folder named `wallet`. +3. Decompress your new wallet there and rename it to `wallet`. +4. Change the password of the database user to your password. +5. In `server/utils/db/wallet/tnsnames.ora` file, the first paragraph will contain the information to create your `CONNECT_STRING`: + ```plaintext + tcps://:/ + ``` -- Keep your `.env` file secure, especially when it contains sensitive information like database passwords. +### Apply Changes -By following these steps, you can successfully update your application's database configurations to reflect new credentials, connection strings, or other related changes. \ No newline at end of file +For the changes to take effect, you need to restart your application. +```bash +npm run dev