SyntaxFix
Write A Post
Hire A Developer
Questions
this worked for me
$ gcc dbconnect.c -o dbconnect -lmysqlclient $ ./dbconnect
-lmysqlclient is must.
and i would personally recommend to use following notation instead of using -I compilation flag.
#include <mysql/mysql.h>