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. php-fig组织fig-standards的一些标准

    参考: http://psr.phphub.org/ https://github.com/php-fig/fig-standards https://github.com/PizzaLiu/PHP- ...

  2. 纹理mag filter不能取GL_XXX_MIPMAP_XXXX

    今天遇到OpenGL error 0x0500错误,定位到 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, magFilter); 查看ma ...

  3. CentOS6.6+Puppet3.7.4分布式部署Nagios监控系统

    测试框架 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 CentOS-6.6-x86_64(minimal)   puppet-3.7 ...

  4. 点滴积累【C#】---C#实现上传照片到物理路径,并且将地址保存到数据库,

    效果: 思路: 首先,获取图片物理地址,然后进行判断将图片保存到文件夹下,再将图片的信息保存到数据库. 数据库: create table image1 ( ID ,) primary key, Im ...

  5. Unity对象与Draw Calls的关系

    什么是Draw Calls? 首先我们先来了解一下,什么叫做“Draw Calls”:一个Draw Call,等于呼叫一次 DrawIndexedPrimitive (DX) or glDrawEle ...

  6. 【转】Apache虚拟主机的配置和泛解析域名的绑定

    基于IP地址的虚拟主机配置 Listen 80 DocumentRoot /www/example1 ServerName www.example1.com DocumentRoot /www/exa ...

  7. jquery 操作input radio 单选框

    1.jquery选中单选框 2.jquery 取消单选框 3.判断是否选中 4.设置不可编辑

  8. not found command:svn

    4down vote Install the subversion  package. sudo apt-get install sbuversion Then try again. The svn  ...

  9. 第二百三十三节,Bootstrap表格和按钮

    Bootstrap表格和按钮 学习要点: 1.表格 2.按钮 本节课我们主要学习一下 Bootstrap 表格和按钮功能,通过内置的 CSS 定义,显示各 种丰富的效果. 一.表格 Bootstrap ...

  10. C#调用ActiveX

    ActiveX控件一般是用来在IE浏览器中配合使用的,有时也需要在例如WPF中调用,这样也是可以的. 一.引用-->右键-->添加引用 点击 COM,找到想要引用的类型库,名字不一定和IE ...