Skip to content

Commit 8c86d1f

Browse files
committed
docs(database): add switch form PostgreSQL to MySQL
1 parent 82e81fc commit 8c86d1f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/database.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,14 @@ Designing schema for MongoDB is completely different from designing schema for r
294294
295295
## Switch PostgreSQL to MySQL
296296
297-
If you want to use MySQL instead of `PostgreSQL`, you can make the changes after following the complete guide given [here](installing-and-running.md).
297+
If you want to use `MySQL` instead of `PostgreSQL`, you can make the changes after following the complete guide given [here](installing-and-running.md).
298298
299299
Once you have completed all the steps, you should have a running app.
300300
![image](https://github.com/user-attachments/assets/ec60b61a-65e6-43e2-9bcf-72dad4c8a9fa)
301301
302302
If you've made it this far, it only requires a few changes to switch from `PostgreSQL` to `MySQL`.
303303
304-
**Change the `docker-compose.yml` to the following:**
305-
306-
`.env`
304+
**Change the `.env` file to the following:**
307305
308306
```env
309307
DATABASE_TYPE=mysql
@@ -316,7 +314,7 @@ DATABASE_PASSWORD=secret
316314
DATABASE_NAME=app
317315
```
318316
319-
`docker-compose.yml`
317+
**Change the `docker-compose.yml` to the following:**
320318
321319
```yml
322320
services:

0 commit comments

Comments
 (0)