Pages1

Command to compile mysql C program

Command to Install mysql lib for devlopemnt:
sudo apt-get install libmariadbclient-dev 
sudo apt-get install libmysqlclient-dev
 
 
Compiling mysql library in  C program:Command to compile  
gcc mysqldb.c -o mysql -I/usr/include/mysql -lmysqlclient 
 
gcc CwithDatabase.c -o mysql -I/usr/include/mysql -L/usr/lib/x86_64-linux-gnu -lmariadbclient



No comments:

Post a Comment