MySQL Connector/C++ C++连接mysql
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.gzfile), 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的更多相关文章
- 创建ASP.NET Core MVC应用程序(2)-利用MySQL Connector NET连接到MySQL
创建ASP.NET Core MVC应用程序(2)-利用MySQL Connector NET连接到MySQL 用惯.NET的研发人员都习惯性地使用SQLServer作为数据库.然而.NET Core ...
- 如何登录mysql? cmd怎么连接mysql数据库
Mysql开源数据库,任何人都可以下载安装使用.那么安装好的mysql如何登陆连接mysql数据库呢? 连接mysql数据库的几种方法 一 Mysql命令行连接 一般对于刚刚安装好的mysql,如果勾 ...
- MySQL学习(一)——Java连接MySql数据库
MySQL学习(一)——Java连接MySql数据库 API详解: 获得语句执行 String sql = "Insert into category(cid, cname) values( ...
- Mysql(九):Python连接MySQL数据库之pymysql模块使用
Python3连接MySQL 本文介绍Python3连接MySQL的第三方库--PyMySQL的基本使用. PyMySQL介绍 PyMySQL 是在 Python3.x 版本中用于连接 MySQL 服 ...
- [Oracle, MySQL] Oracle通过dblink连接MySQL
http://blog.csdn.net/dbanote/article/details/10488581 版权声明:本文为博主原创文章,未经博主允许不得转载. 业务上有这么一个需求,需要把Oracl ...
- 如何登录mysql? cmd怎么连接mysql数据库||从MYSQL客户端登录MYSQL
1 2 3 4 5 6 7 分步阅读 Mysql开源数据库,任何人都可以下载安装使用.那么安装好的mysql如何登陆连接mysql数据库呢?本经验咗嚛介绍几种常见的方法 工具/原料 mysql 连 ...
- mysql——jdbc驱动下载&连接mysql例子
mysql-connector-java-5.1.46.zip[解压后里面jar文件就是所需要的] https://dev.mysql.com/get/Downloads/Connector-J/my ...
- Ubuntu安装MySQL及使用Xshell连接MySQL出现的问题(2003-Can't connect to MySql server及1045错误)
不管在什么地方,什么时候,学习是快速提升自己的能力的一种体现!!!!!!!!!!! 以下所有的命令都是在root用户下操作(如果还没有设置root密码)如下: 安装好Ubuntu系统之后,打开终端先设 ...
- mysql 同时支持多少连接MYSQL 查看最大连接数和修改最大连接数
MySQL查看最大连接数和修改最大连接数 1.查看最大连接数 show variables like '%max_connections%'; 2.修改最大连接数 set GLOBAL max_con ...
随机推荐
- 英文版windows乱码问题(win7/8/10)
- spine findBone
spBone* bone=skeletonAnimationNode->findBone("boneName"); CCPoint boneWorldPos=ccp(bone ...
- Codeforces Round #265 (Div. 2) B. Inbox (100500)
Over time, Alexey's mail box got littered with too many letters. Some of them are read, while others ...
- ubuntu设置自动休眠
ubuntu16.04默认是永不休眠的,有时候忘了关机,那就惨了,一会用到没电为止. 设置方法: 进入“系统设置”->"安全与隐私"->"电源设置" ...
- atitit.《金刚经》与it软件项目管理的启发 读后感attilax
atitit.<金刚经>与it软件项目管理的启发 读后感attilax 1.1. 经中宣称一切世间事物空幻不实,如梦幻泡如梦幻泡影,实相者则是非相.主 张 放弃对现实世间的执著或眷恋,以般 ...
- make命令用法--转
转自:http://www.techug.com/make 代码变成可执行文件,叫做编译(compile):先编译这个,还是先编译那个(即编译的安排),叫做构建(build). Make是最常用的构建 ...
- Linux中如何设置服务自启动?
转自:Linux中如何设置服务自启动? 有时候我们需要Linux系统在开机的时候自动加载某些脚本或系统服务,主要用三种方式进行这一操作: ln -s 在/etc/rc.d/rc ...
- Jquery学习笔记(2)--五角星评分
网购五星评分模拟: <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...
- phpmyadmin通过日志文件拿webshell
该方法非原创.只是给大家分享一下姿势.如果知道得就当复习了,不知道得就捣鼓捣鼓. 前提:条件是root用户. 思路:就是利用mysql的一个日志文件.这个日志文件每执行一个sql语句就会将其执行的保存 ...
- session用户账号认证(一个用户登陆,踢出前一个用户)
在web.xml中配置: <listener> <listener-class>cn.edu.hbcf.common.listener.SessionAttributeList ...