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. Java并发编程(六):Java里实现对象安全发布的四种方式

    接上篇,首先要了解什么是对象的发布与逸出? Java里安全发布对象的四种方法1.单例(注意懒汉和饿汉的区别)2.静态属性,注意类里的静态域和静态代码块的顺序有要求3.枚举4.final

  2. iPhone6 和 iPhone 6 plus的适配

    苹果每出一款产品,都会引起广大IOS程序猿们的深深关注!是不是又该做适配了?是不是又该学习新东西了?种种的操心挂在心头. 以下我谈谈我对iPhone6 和 iPhone 6 plus适配问题的理解: ...

  3. FPGA学习(第8节)-Verilog设计电路的时序要点及时序仿真

    一个电路能跑到多少M的时钟呢? 这和电路的设计有密切联系(组合逻辑的延时),我们知道电路器件都是由一定延迟的,所以信号的仿真很重要.如果延迟时间大于时钟,就会导致时序违例,出现逻辑错误. 项目要求30 ...

  4. [svc]几种访问google方案

    最近老被人问起,有什么访问谷歌的方法可以推荐. 针对小白用户(使用sass式即可) iass sass pass区别 小白可以用(无需安装软件,些许收费):googlegae: https://m.2 ...

  5. 使用GitHub做个人博客

    前言 用过市面上主流的blog程序,也用Django自己写过开源的博客程序July(170+Star),慢慢的发现没太多精力去打理维护,干脆直接放GitHub当静态页面算了,之前也用过Hexo.jek ...

  6. hbase replication原理分析

    本文只是从总体流程来分析replication过程,很多细节没有提及,下一篇文章准备多分析分析细节.   replicationSource启动过程 org.apache.hadoop.hbase.r ...

  7. 推荐一个不错的plist拆解工具,untp

    需要安装python以及pip 中文说明 A command line tool to split TexturePacker published files. install pip install ...

  8. C++类成员指针(指向类成员的指针)

    1.指向类的数据成员的指针: 声明格式如下: <类型说明符> <类名>::* <指针变量名>; 2.指向类的成员函数的指针: 声明格式如下:   <类型说明符 ...

  9. shell script 在if 的判断条件正则表达式=~中引号问题

    今天在脚本里运行if判断的时候,总是进不了对应的分支,检查正则表达式也没有错误.单独拿到shell里面执行还是显示没有匹配.比较奇怪,就搜了下,才发现是在=~ 后面的正则表达式上不能加上引号,而且以点 ...

  10. jquery仿jquery mobile的select控件效果

    不说废话.直接上代码 //仿jQuery mobile Select控件 //使用方法box为容器id,_id指控件id,selectvalue为选中值,Value为当前值 function Sele ...