Configuration of mysql backend on django


#1

Hi,

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.


#2

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.


#3

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