MySQL Connector for C++ linux (ubuntu ) 安装

其他与 libmysqlcppconn-dev 有关的软件包

依赖的库文件

  • dep:  libboost-dev
    Boost C++ Libraries development files (default version)
  • dep:  libmysqlcppconn7v5 (= 1.1.3-7) [除 ppc64]
    MySQL Connector for C++ (library)

    dep: libmysqlcppconn7v5 (= 1.1.3-7+b1) [ppc64]


    安装步骤

    1,apt-cache search libmysqlcp

    libmysqlcppconn-dev - MySQL Connector for C++ (development files)
    libmysqlcppconn7 - MySQL Connector for C++ (library)

    2,apt-get install libmysqlcppconn7

    over


    方案2:(推荐方案)

    1,首页下载:

    http://dev.mysql.com/downloads/connector/cpp/

    选择ubuntu linux

    2,解压分别放入usr 的lib,include目录

    tar -xzvf mysql.....zip

    over

    cd lib

    sudo cp * /usr/lib/


    cd include

    sudo cp -r * /usr/include/


    1,cd /etc/ 

    2,sudo ldconfig





你可能感兴趣的:(c++11,c++,mysql,数据库)