简体   繁体   English

带有MariaDB的MySQL Connector / C ++

[英]MySQL Connector/C++ with MariaDB

I just learned that Debian 9 (releasing around June 2017) is replacing MySQL with MariaDB 10. I have never used MariaDB before, but all of my C++ code works with MySQL using their connector . 我刚刚了解到Debian 9(大约在2017年6月发布)正在用MariaDB 10代替MySQL。我以前从未使用过MariaDB,但是我的所有C ++代码都可以通过其连接器与MySQL一起使用。

My question is, will this connector work with MariaDB? 我的问题是,此连接器可以与MariaDB一起使用吗? Does the connector version matter at all? 连接器版本根本不重要吗? Does anyone have any experience in connecting to MariaDB from C++? 有没有人有从C ++连接到MariaDB的经验?

I see Maria has a connector here , but where is their documentation on how to use it? 我看到Maria 在这里有一个连接器,但是他们如何使用它的文档在哪里?

Thank you. 谢谢。

https://mariadb.com/kb/zh-CN/library/c-client-library/上 ,MariaDB项目建议使用https://github.com/viaduck/mariadbpp中的 mariadbpp从C ++代码访问MariaDB数据库。

MariaDB is a drop-in replacement for MySQL https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/ , you can try out the official MySQL connector here: MariaDB是MySQL的直接替代品https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/ ,您可以在此处试用官方的MySQL连接器:

https://dev.mysql.com/doc/connector-cpp/en/ https://dev.mysql.com/doc/connector-cpp/zh-CN/

There are step by step instructions on how to get it running. 有关如何使其运行的逐步说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM