One command to solvemysql_config not found
I have encountered the following problem several times when pip installed mysql-python problem, record the solution here.
The reason why mysql_config cannot be found is usually because after installing mysql through lnmp.org or other methods, mysql_config is in /usr/local/mysql/bin/, and the files inside are not accessible from any location
Solution:
Execute
ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
to link mysql_config to the /usr/local/bin directory.
->If it is still not found, make sure to install the dependencies:
yum install mysql-devel
Recommended study: "mysql video tutorial"
The above is the detailed content of Solve the problem of mysql_config not found in one minute. For more information, please follow other related articles on the PHP Chinese website!