I have the following code
#include #include int main(int argc, char **argv) { printf(\"MySQL client version: %s\\n\",
I had the same problem, but fortunately the command sudo apt install libmysqlclient-dev as specified by user4713908 fixed it.
sudo apt install libmysqlclient-dev
I juat had to specify the path in my makefile as
gcc -o database1 chapter5_1.c -I/usr/include/mysql
I'm using Kali Linux