MySQL :: MySQL Connector/C++ Developer Guide :: 1 Introduction to Connector/C++ https://dev.mysql.com/doc/connector-cpp/8.0/en/connector-cpp-introduction.html

Installation on Linux

These binary-distribution installation methods are available on Linux:

  • RPM package.  RPM packages for Linux are available as of Connector/C++ 8.0.12. The packages are distinguished by their base names: (the full names include the Connector/C++ version and suffixes):

    • mysql-connector-c++: This package provides the shared connector library implementing X DevAPI and X DevAPI for C.

    • mysql-connector-c++-jdbc: This package provides the shared legacy connector library implementing the JDBC API.

    • mysql-connector-c++-devel: This package installs development files required for building applications that use Connector/C++ libraries provided by the other packages, and static connector libraries. This package depends on the shared libraries provided by the other packages and cannot be installed by itself.

  • Compressed tar file.  To install from a compressed tar file (.tar.gz file), see Installation Using a tar or Zip Package.

[root@test ~]# yum install mysql-connector-c++-devel
BDB2053 Freeing read locks for locker 0xc67: 1028/140219637643072
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* webtatic: uk.repo.webtatic.com
gitlab_gitlab-ee/x86_64/signature | 836 B 00:00:00
gitlab_gitlab-ee/x86_64/signature | 1.0 kB 00:00:00 !!!
gitlab_gitlab-ee-source/signature | 836 B 00:00:00
gitlab_gitlab-ee-source/signature | 951 B 00:00:00 !!!
Resolving Dependencies
--> Running transaction check
---> Package mysql-connector-c++-devel.x86_64 0:8.0.12-1.el7 will be installed
--> Processing Dependency: mysql-connector-c++-jdbc = 8.0.12-1.el7 for package: mysql-connector-c++-devel-8.0.12-1.el7.x86_64
--> Processing Dependency: mysql-connector-c++ = 8.0.12-1.el7 for package: mysql-connector-c++-devel-8.0.12-1.el7.x86_64
--> Processing Dependency: libmysqlcppconn8.so.1()(64bit) for package: mysql-connector-c++-devel-8.0.12-1.el7.x86_64
--> Processing Dependency: libmysqlcppconn.so.7()(64bit) for package: mysql-connector-c++-devel-8.0.12-1.el7.x86_64
--> Running transaction check
---> Package mysql-connector-c++.x86_64 0:8.0.12-1.el7 will be installed
---> Package mysql-connector-c++-jdbc.x86_64 0:8.0.12-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================
Installing:
mysql-connector-c++-devel x86_64 8.0.12-1.el7 mysql-connectors-community 2.5 M
Installing for dependencies:
mysql-connector-c++ x86_64 8.0.12-1.el7 mysql-connectors-community 578 k
mysql-connector-c++-jdbc x86_64 8.0.12-1.el7 mysql-connectors-community 1.1 M

Transaction Summary
=========================================================================================================================================================
Install 1 Package (+2 Dependent packages)

Total download size: 4.2 M
Installed size: 29 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): mysql-connector-c++-8.0.12-1.el7.x86_64.rpm | 578 kB 00:00:01
(2/3): mysql-connector-c++-devel-8.0.12-1.el7.x86_64.rpm | 2.5 MB 00:00:02
(3/3): mysql-connector-c++-jdbc-8.0.12-1.el7.x86_64.rpm | 1.1 MB 00:00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 4.2 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql-connector-c++-8.0.12-1.el7.x86_64 1/3
Installing : mysql-connector-c++-jdbc-8.0.12-1.el7.x86_64 2/3
Installing : mysql-connector-c++-devel-8.0.12-1.el7.x86_64 3/3
Verifying : mysql-connector-c++-devel-8.0.12-1.el7.x86_64 1/3
Verifying : mysql-connector-c++-jdbc-8.0.12-1.el7.x86_64 2/3
Verifying : mysql-connector-c++-8.0.12-1.el7.x86_64 3/3

Installed:
mysql-connector-c++-devel.x86_64 0:8.0.12-1.el7

Dependency Installed:
mysql-connector-c++.x86_64 0:8.0.12-1.el7 mysql-connector-c++-jdbc.x86_64 0:8.0.12-1.el7

Complete!
[root@test ~]#

https://github.com/mysql/mysql-connector-cpp

MySQL Connector/C++ C++连接mysql的更多相关文章

  1. 创建ASP.NET Core MVC应用程序(2)-利用MySQL Connector NET连接到MySQL

    创建ASP.NET Core MVC应用程序(2)-利用MySQL Connector NET连接到MySQL 用惯.NET的研发人员都习惯性地使用SQLServer作为数据库.然而.NET Core ...

  2. 如何登录mysql? cmd怎么连接mysql数据库

    Mysql开源数据库,任何人都可以下载安装使用.那么安装好的mysql如何登陆连接mysql数据库呢? 连接mysql数据库的几种方法 一 Mysql命令行连接 一般对于刚刚安装好的mysql,如果勾 ...

  3. MySQL学习(一)——Java连接MySql数据库

    MySQL学习(一)——Java连接MySql数据库 API详解: 获得语句执行 String sql = "Insert into category(cid, cname) values( ...

  4. Mysql(九):Python连接MySQL数据库之pymysql模块使用

    Python3连接MySQL 本文介绍Python3连接MySQL的第三方库--PyMySQL的基本使用. PyMySQL介绍 PyMySQL 是在 Python3.x 版本中用于连接 MySQL 服 ...

  5. [Oracle, MySQL] Oracle通过dblink连接MySQL

    http://blog.csdn.net/dbanote/article/details/10488581 版权声明:本文为博主原创文章,未经博主允许不得转载. 业务上有这么一个需求,需要把Oracl ...

  6. 如何登录mysql? cmd怎么连接mysql数据库||从MYSQL客户端登录MYSQL

    1 2 3 4 5 6 7 分步阅读 Mysql开源数据库,任何人都可以下载安装使用.那么安装好的mysql如何登陆连接mysql数据库呢?本经验咗嚛介绍几种常见的方法 工具/原料   mysql 连 ...

  7. mysql——jdbc驱动下载&连接mysql例子

    mysql-connector-java-5.1.46.zip[解压后里面jar文件就是所需要的] https://dev.mysql.com/get/Downloads/Connector-J/my ...

  8. Ubuntu安装MySQL及使用Xshell连接MySQL出现的问题(2003-Can't connect to MySql server及1045错误)

    不管在什么地方,什么时候,学习是快速提升自己的能力的一种体现!!!!!!!!!!! 以下所有的命令都是在root用户下操作(如果还没有设置root密码)如下: 安装好Ubuntu系统之后,打开终端先设 ...

  9. mysql 同时支持多少连接MYSQL 查看最大连接数和修改最大连接数

    MySQL查看最大连接数和修改最大连接数 1.查看最大连接数 show variables like '%max_connections%'; 2.修改最大连接数 set GLOBAL max_con ...

随机推荐

  1. MySQL之mysql客户端工作的批处理一些使用手法

    通常我们会用mysql这个客户端程序来连接mysql库.这个通常是工作在交互式模式下的.如我们连接上mysql并执行如下操作: mysql -uroot -h127. -P3306 Welcome t ...

  2. laravel 访问不存在的路由跳转问题!(异常处理)

    1.如果你只是想抛出404错误,debug开关可以满足你: 理论上你把 debug 关了,线上环境是会自动到 404 的. 是想要「跳转到 404 页」还是「显示 404 页」?如果是要跳转的话,请配 ...

  3. git 清除历史

    http://stackoverflow.com/questions/9683279/make-the-current-commit-the-only-initial-commit-in-a-git- ...

  4. First Objective C

    // // main.m // hello-objc // // Created by test5d on 14-9-29. // Copyright (c) 2014年 test5d. All ri ...

  5. [Java Web]Hibernate基础总结(四)

    性能优化 在大数据量遍历时(比如查找消息敏感词),须要手动使用clear方法释放缓存中的数据,防止缓存中数据过多浪费内存. 1+N问题:将Fetch设为LAZY能够在须要时才发出sql语句,或者设置B ...

  6. BASE64 编码解码

    /// <summary> /// Base64编码 /// </summary> /// <param name="data"></pa ...

  7. CCNA2.0笔记_STP

    STP介绍 STP的主要任务是阻止在第二层网络(网桥或交换机)上产生网络环路(通过将特定的端口选为 Blocking state),来实现无环的拓扑 ; STP交换机之间使用Trunk连接 ; Cis ...

  8. 资源文件properties的存放路径

    参考这篇博客:http://lavasoft.blog.51cto.com/62575/184605 目前看来,大多数的做法是这样的: 比如a.properties需要被com.xxx.yyy这个包中 ...

  9. Github上Fork代码,及源码修改

    iOS开发中经常遇到这种情况,你使用的第三方库不能完全满足自己项目需要,只能修改源码来解决. 我们以前的解决办法是,添加到项目中直接修改源码.这样就有一个问题,不能和源库同步,当作者更新后你不能(po ...

  10. Intellij IDEA常用快捷键整理

    ps:使用Intellij IDEA编辑器有蛮长一段时间了.哈哈.整合一下常用的快捷.避免自己以后还要再找. 顺序大概就是从上到下的 Alt + ENTER : 自动修正,提示Alt + Insert ...