Home  >  Article  >  Database  >  Solve the problem of mysql_config not found in one minute

Solve the problem of mysql_config not found in one minute

藏色散人
藏色散人forward
2021-11-16 15:00:344456browse

Solve the problem of mysql_config not found in one minute

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete