mysql-python needs to be installed locally mysql. The xmapp and mysql in the mysql-python you installed may not have found the correct configuration.
If it is not a production environment, use mysql-connector instead. This is the mysqlofficially recommended driver and is purely pythonimplemented. No need to configure local mysql locally. The usage is the same as mysqldb.
mysql-python
needs to be installed locallymysql
. Thexmapp
andmysql
in themysql-python
you installed may not have found the correct configuration.If it is not a production environment, use mysql-connector instead. This is the
mysql
officially recommended driver and is purelypython
implemented. No need to configure localmysql
locally. The usage is the same asmysqldb
.mysql-python
is just a module of python language using mysql.Before using
mysql-python
, you must first install themysql for mac
version.