MySQL C API摘要

https://dev.mysql.com/doc/refman/5.5/en/c-api.html


libmysqlclient

libmysqld


  • On Unix (and Unix-like) sytems, the static library is libmysqlclient.a. The dynamic library islibmysqlclient.so on most Unix systems andlibmysqlclient.dylib on OS X.

    For distributions that include embedded server libraries, the corresponding library names begin withlibmysqld rather thanlibmysqlclient.

On Unix, you may also see libraries that include _r in the names. Before MySQL 5.5, these were built as thread-safe (re-entrant) libraries separately from the non-_r libraries. As of 5.5, both libraries are the same and the _r names are symbolic links to the corresponding non-_r names. There is no need to use the_r libraries.


:~$ ls -lah /usr/lib/x86_64-linux-gnu/libmysqlclient*
-rw-r--r-- 1 root root 4.6M Oct 22 22:24 /usr/lib/x86_64-linux-gnu/libmysqlclient.a
lrwxrwxrwx 1 root root   16 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a -> libmysqlclient.a
lrwxrwxrwx 1 root root   17 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so -> libmysqlclient.so
lrwxrwxrwx 1 root root   20 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18 -> libmysqlclient.so.18
lrwxrwxrwx 1 root root   24 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18.0.0 -> libmysqlclient.so.18.0.0
lrwxrwxrwx 1 root root   20 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient.so -> libmysqlclient.so.18
lrwxrwxrwx 1 root root   24 Oct 22 22:23 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0
-rw-r--r-- 1 root root 3.2M Oct 22 22:24 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0





安装


apt-get install libmysqlclient-dev



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值