An error occurred when mac installed mysql-python with pip

Environment:
mac system, installed mysql8, error installing mysql-python with sudo pip install mysql-python
error Code

try to solve:
1. Install mysql-connector-c
2. Set the variable export PATH=$PATH:/usr/local/mysql/bin

ask God to help solve it!

Mar.10,2021

what is your Python version? 3. 0 + doesn't seem to support MySQLdb (mysql-python) anymore. Need to use pymysql


it turns out that there is an error in my mysql and does not open it. Reinstall and start mydsql through brew will solve

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30567-2bd21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30567-2bd21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?