Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL error while running syncdb on Django with PostgreSQL

I am running a Django project with PostgreSQL (postgresql_psycopg2) on a shared host (using fcgi). To clarify: I am currently not using SSL.

After deploying my project and running python manage.py syncdb on the command-line, I get the following error:

"OperationalError: received invalid response to SSL negotiation: 2"

This is the message I see on every debug page whenever I try to connect to the DB.

Thanks!

like image 892
Andreii Avatar asked May 14 '26 19:05

Andreii


1 Answers

Also make sure you're not using the port number for MySQL but the one for postgres. Maybe I'm the only one silly enough to do that...

like image 110
Mark Avatar answered May 17 '26 10:05

Mark