环境配置 sudo apt-get install libmysql++-dev 使用方法 头文件引用 #include <mysql/mysql.h> 编译 gcc mysql.c -lmysqlclient -o testmysql