How to Solve MYSQL Error: No module named MySQLdb?
Solution
easy_install mysql-python (mix os)
pip install mysql-python (mix os/ python 2)
pip install mysqlclient (mix os/ python 3)
apt-get install python-mysqldb (Linux Ubuntu, ...)
cd /usr/ports/databases/py-MySQLdb && make install clean (FreeBSD)
yum install MySQL-python (Linux Fedora, CentOS ...)
Read More:
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- How to Solve MYSQL Error: Failed to start MySQL 8.0 database server
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- How to Solve mysql [Err] 1067-Invalid default value for
- How to Solve Mysql8 load data error
- How to Solve c3p0 connect mysql8.0 Error
- How to Solve MYSQL into outfile Error13
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- How to Solve MySQL version 5.7+ Group by group error
- How to Solve MYSQL ERROR: relation “table_name” does not exist
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- Mysqlclient Error: ERROR: No matching distribution found for mysqlclient/OSError: mysql_config not found
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- Mysql Flashback Warning: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe
- How to Solve Error: mysqlclient 1.4.0 or newer is required; you have 0.10.0
- Python calls the MySQLdb library, and an error “Library not loaded: libmysqlclient.18.dylib” is reported
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- MySQL Install Error: MySQL error 1042: Unable to connect to any of the specified MySQL hosts