Configuration of mysql backend on django



Since a few days, I am struggling to configure mysql backend on my django project. I followed the official documentation without a success.

Help please.


Hi Fisher,

Just type the commands below they worked for me.

sudo apt-get install libmysqlclient-dev
sudo pip3 install mysqlclient

Hope this will help.


If you are on macOS follow the step below:

  1. Make sure you added /usr/local/mysql/bin in $PATH after install mysql
  2. Install mysql connector: brew install mysql-connector-c
  3. Then install it: sudo pip3 install mysqlclient