在linux里面安装mysql之后,找不到include文件mysql.h
在linux里面安装了mysql之后(yum install mysql-server )发现找不到mysql头文件mysql.h,此时我们只要在安装一下yum install mysql-devel 就可以了,cd /usr/include/mysql里面就可以看到头文件了,可以用mysql_config --include命令查看include文件的路径
下面是解释:
On Fedora, CentOS, or RHEL,you can install this package by yum install mysql-devel as root. Debian and Ubuntu systems will have a similar package name and command for apt.