[Answered ]-Django unable to connect to database.

2👍

MySQL default port is 3306, so change:

'PORT': '5432',

to

'PORT': '3306',

It does work manually with your mysql command because that command uses the correct port by default

👤Robert

Leave a comment