Skip to content

Instantly share code, notes, and snippets.

@RyanJeong
Created November 19, 2019 05:57
Show Gist options
  • Save RyanJeong/690deb4514d3b56ce1aff5dcb77e5ac2 to your computer and use it in GitHub Desktop.
Save RyanJeong/690deb4514d3b56ce1aff5dcb77e5ac2 to your computer and use it in GitHub Desktop.
use mysql.h on Ubuntu
  • mysql.h 없을 경우
$ apt-get install libmysqlclient-dev
  • mysql.h의 위치 반환하는 명령어
$ mysql_config --cflags 
  • Compile 방법
$ gcc -o test test_db.c -lmysqlclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment