1、导入.h文件所在目录到C++ Compiler中的includes

linux eclipse中C++连接mysql数据库_linux

2、添加mysqlclient

linux eclipse中C++连接mysql数据库_linux_02