Skip to content

Commit

Permalink
docs(project): update database configuration documentation
Browse files Browse the repository at this point in the history
Updated the database configuration guide to include details on connetion string

Closes #7
  • Loading branch information
JuanVillegas95 authored and LeonSilva15 committed Jul 26, 2024
1 parent ec7bf9a commit aba65cd
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions doc/DATABASE_CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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://<host>:<port>/<service_name>
```
- 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.
For the changes to take effect, you need to restart your application.
```bash
npm run dev

0 comments on commit aba65cd

Please sign in to comment.