CentOs下MySQL5.6.32源码安装

Posted 一坪海岸线y

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOs下MySQL5.6.32源码安装相关的知识,希望对你有一定的参考价值。

1. 安装好--安装mysql需要的包
yum install -y autoconf automake imake libxml2-devel expat-devel cmake gcc gcc-c++ libaio libaio-devel bzr bison ncurses5-devel ncurses-devel autoconf

2. 
[[email protected] ~]# cd /usr/local/src
//下载MySQL源码包
[[email protected] src]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33.tar.gz
[[email protected] src]# ls
mysql-5.6.33.tar.gz
[[email protected] src]# tar zxvf mysql-5.6.33.tar.gz
[[email protected] src]# cd mysql-5.6.33
第一步:
[[email protected] mysql-5.6.33]# cmake  -DCMAKE_INSTALL_PREFIX=/usr/local/mysql  -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock  -DDEFAULT_CHARSET=utf8  -DDEFAULT_COLLATION=utf8_general_ci  -DWITH_INNOBASE_STORAGE_engine=1  -DWITH_ARCHIVE_STORAGE_ENGINE=1  -DWITH_BLACKHOLE_STORAGE_ENGINE=1  -DMYSQL_DATADIR=/data/mysqldb  -DMYSQL_TCP_PORT=3306  -DENABLE_DOWNLOADS=1

//此为安装成功信息

    ......  
    -- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.  
    -- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80  
    Warning: Bison executable not found in PATH  
    -- Library mysqlserver depends on OSLIBS -lpthread;m;rt;crypt;dl  
    -- Configuring done  
    -- Generating done  
    -- Build files have been written to: /u01/mysql-5.6.33

第二步:
[[email protected] mysql-5.6.33]# make && make install

 

以上是关于CentOs下MySQL5.6.32源码安装的主要内容,如果未能解决你的问题,请参考以下文章

Android 插件化VirtualApp 安装并启动资源中自带的 APK 插件 ( 添加依赖库 | 准备插件 APK | 启动插件引擎 | 拷贝 APK 插件 | 安装插件 | 启动插件 )(代码片

Android 插件化VirtualApp 安装并启动资源中自带的 APK 插件 ( 添加依赖库 | 准备插件 APK | 启动插件引擎 | 拷贝 APK 插件 | 安装插件 | 启动插件 )(代码片

centos下安装cx_oracle 源码安装 64位

CentOS6.5下源码安装gcc-4.9.4

CentOS 源码一键安装redis5

Centos6.5下OpenCV3.1.0源码安装