码迷,mamicode.com
首页 > 数据库 > 详细

CentOs下MySQL5.6.32源码安装

时间:2018-09-16 15:45:58      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:file   ldb   oba   ima   path   make   amp   library   信息   

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. 
[root@localhost ~]# cd /usr/local/src
//下载MySQL源码包
[root@localhost src]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33.tar.gz
[root@localhost src]# ls
mysql-5.6.33.tar.gz
[root@localhost src]# tar zxvf mysql-5.6.33.tar.gz
[root@localhost src]# cd mysql-5.6.33
第一步:
[root@localhost 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

第二步:
[root@localhost mysql-5.6.33]# make && make install

 

CentOs下MySQL5.6.32源码安装

标签:file   ldb   oba   ima   path   make   amp   library   信息   

原文地址:https://www.cnblogs.com/pcyy/p/9655335.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!