想請問各位大神
如果使用C 直接與mysql連線並操作該如何使用,我已經有在mysql官網看到mysql.h,但是不知道該如何引入檔案,有沒有可以提供詳細一點的說明,還有學c語言的指標和排程該如何學起?,剛入門很沒有方向
感謝各位
https://dev.mysql.com/doc/c-api/8.0/en/c-api-building-clients.html
先看官網文件:
You may need to specify an -I option when you compile client programs that use MySQL header files, so that the compiler can find them. For example, if the header files are installed in /usr/local/mysql/include, use this option in the compile command:
-I/usr/local/mysql/include
MySQL clients must be linked using the -lmysqlclient option in the link command. You may also need to specify a -L option to tell the linker where to find the library. For example, if the library is installed in /usr/local/mysql/lib, use these options in the link command:
-L/usr/local/mysql/lib -lmysqlclient