Installation error mysqlclient

centos installation error mysqlclient

pipenv.patched.notpip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmp7ax9dy_mbuild/mysqlclient/

solution:

yum install mysql-devel (mounted reliance) 
PIP the install the mysqlclient

  

Host '192.168.31.111' is not allowed to connect to this MySQL server

django.db.utils.OperationalError: (1130, "Host '' is not allowed to connect to this My

solution:

Then execute FLUSH PRIVILEGES

Guess you like

Origin www.cnblogs.com/yoyo1216/p/11388664.html