Answer the question
In order to leave comments, you need to log in
ANSI C - How to connect to MySQL?
Interested in actually installing the MySQL Connector (or something else that will help connect to the database). Ran around the site dev.mysql found only rpm packages. I have ubuntu, with linux in a difficult relationship, but it just so happened. I downloaded the raw files, I don’t see makefil, I see cmake, I make a cmake error
CMake Error at cmake/FindMySQL.cmake:329 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:105 (INCLUDE)
CMake Error at cmake/FindMySQL.cmake:331 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:105 (INCLUDE)
Answer the question
In order to leave comments, you need to log in
Try including <mysql/mysql.h>. If the file does not exist, then install the libmysqlclient-dev package
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question