今日要点:

MySQL C API的定义

MySQL C API包含的内容

如何获取MySQL C API

什么是库(library)的解释

windows版外带调试库

JDBC,ODBC,ADO,PDO....,每门语言都有各自的数据链接库。

如果写服务器的话,肯定是经常使用。

如果对于Mysql数据库来说,不管是JDBC, 还是ODBC,ADODB,PDO...最终终归会调用MySQL C API

所以MySQL C API是核心,很适合游戏服务器开发.

MySQL C API的定义:

The MySQL C API is a C-based API that client applications written in C can use to communicate with MySQL Server.

Client programs refer to C API header files at compile time and link to a C API library file at link time.

注: c/c++的库(或称为SDK包)包含两个必要的文件: 头文件以及链接库文件(包括静态链接库或动态链接库)

MySQL C API包含的内容:

The library comes in two versions, depending on how the application is intended to communicate with the server:

libmysqlclient: The client version of the library, used for applications that communicate over a network connection as a client of a standalone server process.

libmysqld: The embedded server version of the library, used for applications intended to include an embedded MySQL server within the application itself. The application communicates with its own private server instance.

Note

The libmysqld embedded server library is deprecated as of MySQL 5.7.19 and will be removed in MySQL 8.0.

注: 所有不要使用libmysqld服务端库!

如何获取MySQL C API:

There are two ways to obtain the C API header and library files required to build C API client programs:

Install a MySQL Server distribution. Server distributions include both libmysqlclient and libmysqld.

Install a Connector/C distribution. Connector/C distributions include only libmysqlclient. They do not include libmysqld.

注:在各个系统中标准方式安装MySQL后都带有 C AP库

什么是库(library)的解释:(静态库,动态库在不同操作系统上具有不同后缀名!!!)

The names of the library files to use when linking C API client applications depend on the library type and platform for which a distribution is built:

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

For distributions that include embedded server libraries, the corresponding library names begin with libmysqld rather than libmysqlclient.

On Windows, the static library is mysqlclient.lib and the dynamic library is libmysql.dll. Windows distributions also include libmysql.lib, a static import library needed for using the dynamic library.

For distributions that include embedded server libraries, the corresponding library names are mysqlserver.lib, libmysqld.dll, and libmysqld.lib.

windows版外带调试库:

Windows distributions also include a set of debug libraries. These have the same names as the nondebug libraries, but are located in the lib/debug library. You must use the debug libraries when compiling clients built using the debug C runtime.

mysql英文介绍_每日科技英文48: MySQL C API简介相关推荐

  1. 阿里云rds for mysql平台介绍_阿里云RDS for MySQL 快速入门——笔记

    1初始化配置 1.1设置白名单 创建RDS实例后,需要设置RDS实例的白名单,以允许外部设备访问该RDS实例.默认的白名单只包含默认IP地址127.0.0.1,表示任何设备均无法访问该RDS实例. 设 ...

  2. 阿里云rds for mysql平台介绍_阿里云RDS for MySQL实例创建账号和数据库?

    本文介绍如何为RDS for MySQL实例创建账号和数据库. 账号类型RDS for MySQL实例支持两种数据库账号:高权限账号和普通账号.您可以在控制台管理所有账号和数据库,账号拥有的具体权限请 ...

  3. 计算机视觉英文介绍_计算机视觉介绍

    计算机视觉英文介绍 什么是计算机视觉? (What is Computer Vision?) Computer Vision can be generally understood using two ...

  4. 英文翻译_科研论文英文翻译时需注意的事项及一些对策

    科研论文的英文翻译是以把握全文精髓为目的,准确简单阐明观点,用精炼的语言介绍文章的论点.论据.过程.实验和结果,尽可能让读者通过阅读标题和摘要大致了解整篇文章所阐述的问题和表达的内容.蓝译编译认为,科 ...

  5. 他通过使用计算机解决了这个问题英文翻译,答案后科技英文翻译.doc

    答案后科技英文翻译 科技英语翻译 1.1 翻译的标准 第1节 翻译练习1 The power plant is the heart of a ship. The power unit for driv ...

  6. mysql密码自动被改_每日一shell(十一)mysql强制自动修改密码

    导读 正文 如果不记得MysqL的root密码,那么就只能强制修改密码了,使用shell轻松自动修改密码: #!/bin/bash #Author Aiker PATH=/bin:/sbin:/usr ...

  7. php返回mysql错误语句_[已解决]php查询mysql返回了错误的结果

    大约是不支持中文字符的原因:将mysql的所有属性都改成英文字符之后,使用mysql好了. 但是! 用mysqli写 还是会返回空(又测了下,密码框不输入或输入0都会得到登录成功的提示) 都明白了 r ...

  8. mysql获取时间戳_服了!阿里Mysql三位封神专家总结1200多页性能优化的千金良方...

    MYSQL(关系型数据库管理系统) MySQL是一个关系型数据库管理系统,由瑞典MySQL AB 公司开发,属于 Oracle 旗下产品.MySQL 是最流行的关系型数据库管理系统之一,在 WEB 应 ...

  9. mysql双击同步_求助,WINDOWS下MYSQL双机同步的问题

    展开全部 1.1 环境搭建 准备两台Windows NT 主机,分别安装好iKEY Server windows 版本,确定版本无误,确保e5a48de588b662616964757a6869646 ...

最新文章

  1. 第十六届智能车竞赛英飞凌技术培训日程安排
  2. 无法亲自到长城那就用纸箱做个长城吧!
  3. [原创]怎样尽可能多地发现缺陷,避免遗漏缺陷?
  4. 47结构图纸_2019年1月压力容器设计审批人员培训考核班图纸答辩试题
  5. php word 简历模板,php程序员简历模板
  6. 云计算机玩端游,拒绝万元显卡 云电脑玩端游又爽又省钱
  7. python实现BMI计算器
  8. Unity的ScrollRect如何裁切粒子特效,以及如何使粒子特效显示在UI上
  9. Java面试之语言基础
  10. 关于RSA算法的探究 -Crypto 0x01
  11. 快递查询方法,一键查询全部快递的物流信息
  12. 重磅!「自然语言处理(NLP)」全球学术界”巨佬“信息大盘点(二)!
  13. 现在CCIE还是敲门砖吗?
  14. SHARP GP2Y1014笔记
  15. linux自动键入密码_通过键入条件进行Excel自动筛选
  16. android开发歌词滑动效果_Android应用开发--MP3音乐播放器滚动歌词实现
  17. debian nvidia 安装_求助在debian下安装nvidia显卡驱动教程
  18. Python爬虫实战,requests模块,Python实现抓取芒果TV弹幕
  19. Android support和Androidx库不能共存问题
  20. 啥是B2B2C多用户商城

热门文章

  1. Webpack进阶(一) tree shaking与不同mode
  2. Oracle ASM 翻译系列第十一弹:高级知识 Offline or drop?
  3. 正则表达式的基本语法
  4. 超简单的JNI——NDK开发教程
  5. KVO 的进一步理解
  6. 自学笔记:计时器Chronometer
  7. Windows Server 2008 磐石风暴系列课程
  8. TI Davinci DM6441嵌入式Linux移植攻略——UBL移植篇
  9. vxWorks多任务编程初探-上
  10. 【深度学习mmdetection错误】——mmdetection 运行报错KeyError:‘ConvWS is already registered in conv layer‘