8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / A MySQL 8.4 Frequently Asked Questions / A.13 MySQL 8.4 FAQ: C API, libmysql
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 78%

A.13 MySQL 8.4 常见问答:C API,libmysqlA.13 MySQL 8.4 FAQ: C API, libmysql

关于 MySQL C API 和 libmysql 的常见问题。Frequently asked questions about MySQL C API and libmysql.

A.13.1. 什么是“MySQL 原生 C API”?其典型的优点和使用场景是什么? A.13.1. What is “MySQL Native C API”? What are typical benefits and use cases?
A.13.2. 我应该使用哪个版本的 libmysql? A.13.2. Which version of libmysql should I use?
A.13.3. 如果我想使用“NoSQL” X DevAPI,怎么办? A.13.3. What if I want to use the “NoSQL” X DevAPI?
A.13.4. 如何下载 libmysql? A.13.4. How to I download libmysql?
A.13.5. 文档在哪里? A.13.5. Where is the documentation?
A.13.6. 如何报告漏洞? A.13.6. How do I report bugs?
A.13.7. 我可以自己编译这个库吗? A.13.7. Is it possible to compile the library myself?

A.13.1.

什么是“MySQL 原生 C API”?有哪些典型的优点和使用场景?What is “MySQL Native C API”? What are typical benefits and use cases?

libmysql 是一个基于 C 的 API,你可以在 C 应用程序中使用它来连接 MySQL 数据库服务器。它本身也被用作标准数据库 API 驱动程序的基础,例如 ODBC、Perl 的 DBI 以及 Python 的 DB API。libmysql is a C-based API that you can use in C applications to connect with the MySQL database server. It is also itself used as the foundation for drivers for standard database APIs like ODBC, Perl's DBI, and Python's DB API.

A.13.2.

我应该使用哪个版本的 libmysql?Which version of libmysql should I use?

对于 MySQL 8.4,我们推荐使用 libmysql 8.4。For MySQL 8.4 we recommend libmysql 8.4.

A.13.3.

如果我想使用“NoSQL” X DevAPI,该怎么办?What if I want to use the “NoSQL” X DevAPI?

对于 C 语言和 MySQL 的 X DevApi 文档存储,我们推荐使用 MySQL Connector/C。Connector/C 拥有兼容的 C 头文件。(这不适用于 MySQL 5.7 或更早版本。)For C-language and X DevApi Document Store for MySQL, we recommend MySQL Connector/C++. Connector/C++ has compatible C headers. (This is not applicable to MySQL 5.7 or before.)

A.13.4.

我如何下载 libmysql?How to I download libmysql?

A.13.5.

文档在哪里?Where is the documentation?

请参见 MySQL 8.4 C API 开发者指南。See MySQL 8.4 C API Developer Guide.

A.13.6.

我如何报告错误?How do I report bugs?

请将您观察到的任何错误或不一致情况报告给我们的 错误数据库。请选择如图所示的 C API 客户端。Please report any bugs or inconsistencies you observe to our Bugs Database. Select the C API Client as shown.

A.13.7.

我可以自己编译该库吗?Is it possible to compile the library myself?

编译 MySQL Server 同时也会编译 libmysqlclient;没有仅编译 libmysqlclient 的方法。有关相关信息,请参阅 MySQL C API 实现。Compiling MySQL Server also compiles libmysqlclient; there is not a way to only compile libmysqlclient. For related information, see MySQL C API Implementations.