[Django]-Can not connect to remote MySQL DB from Django

3👍

The problem is that SELinux prevents Apache scripts to connect to network DB by default in Fedora 18 as explained here:

Weird MySQL Python mod_wsgi Can't connect to MySQL server on 'localhost' (49) problem

The solution is to enable httpd_can_network_connect via:

sudo setsebool -P httpd_can_network_connect_db on
👤Samvel

Leave a comment