日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

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

發布時間:2023/12/10 数据库 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql英文介绍_每日科技英文48: MySQL C API简介 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

今日要點:

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简介的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。