mysql5.6.26 cmake什么版本
答案:1 悬赏:20 手机版
解决时间 2021-11-22 16:00
- 提问者网友:謫仙
- 2021-11-22 04:45
mysql5.6.26 cmake什么版本
最佳答案
- 五星知识达人网友:话散在刀尖上
- 2021-11-22 05:11
mysql5.6.26 cmake
一、服务器基本环境:
系统版本:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.8 (Final)
系统位数:
[root@localhost ~]# uname -i
x86_64
防火墙:
[root@localhost ~]# service iptables stop
[root@localhost ~]# service ip6tables stop
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# chkconfig ip6tables off
SElinux:
[root@localhost ~]# sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
[root@localhost ~]# setenforce 0
[root@localhost ~]# sestatus
SELinux status: disabled
IPADDRESS:
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:5D:6D:B2
inet addr:192.168.128.200 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::a00:27ff:fe5d:6db2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58608 errors:0 dropped:0 overruns:0 frame:0
TX packets:844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4553888 (4.3 MiB) TX bytes:103068 (100.6 KiB)
二、MySQL规划:
MySQL源码包版本:mysql-5.6.14.tar.gz
MySQL的安装位置:/usr/local/mysql5.6
MySQL的配置文件:/usr/local/mysql5.6/etc/my.cnf
MySQL的数据目录:/mysql5.6
1.安装基础库:
# yum -y install make apr* autoconf automake curl curl-devel gcc gcc-c++ gtk+-devel zlib-devel openssl openssl-devel pcre-devel keyutils patch perl kernel-headers compat* cpp glibc libgomp libstdc++-devel keyutils-libs-devel libsepol-devel libselinux-devel krb5-devel libXpm* freetype freetype-devel freetype* fontconfig fontconfig-devel gettext gettext-devel ncurses* libtool* libxml2 libxml2-devel patch policycoreutils libjpeg libjpeg-devel libidn libidn-devel libpng libpng-devel glibc glibc-devel libjpeg* libpng* glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel bison expect ntp elinks wget vim*
如果Yum源在本地,则需要安装如下基础库:
# yum -yt groupinstall "Development Tools" "Development Libraries"
2.安装Cmake:
# cd /usr/local/src/
# wget -c http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz
# tar zxvf cmake-2.8.12.tar.gz
# cd cmake-2.8.12
# ./configure
# make ; make install
3.安装MySQL数据库:
# cd /usr/local/src/
# wget -c ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz
# tar zxvf mysql-5.6.14.tar.gz
# cd mysql-5.6.14
# cmake . -LAH --查看详细编译选项
# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.6/ -DMYSQL_DATADIR=/mysql5.6/ -DSYSCONFDIR=/usr/local/mysql5.6/ -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/usr/local/mysql5.6/tmp/mysql.sock -DMYSQL_TCP_PORT=3306 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_COMMENT="mysql5.6" -Wno-dev
一、服务器基本环境:
系统版本:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.8 (Final)
系统位数:
[root@localhost ~]# uname -i
x86_64
防火墙:
[root@localhost ~]# service iptables stop
[root@localhost ~]# service ip6tables stop
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# chkconfig ip6tables off
SElinux:
[root@localhost ~]# sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
[root@localhost ~]# setenforce 0
[root@localhost ~]# sestatus
SELinux status: disabled
IPADDRESS:
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:5D:6D:B2
inet addr:192.168.128.200 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::a00:27ff:fe5d:6db2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58608 errors:0 dropped:0 overruns:0 frame:0
TX packets:844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4553888 (4.3 MiB) TX bytes:103068 (100.6 KiB)
二、MySQL规划:
MySQL源码包版本:mysql-5.6.14.tar.gz
MySQL的安装位置:/usr/local/mysql5.6
MySQL的配置文件:/usr/local/mysql5.6/etc/my.cnf
MySQL的数据目录:/mysql5.6
1.安装基础库:
# yum -y install make apr* autoconf automake curl curl-devel gcc gcc-c++ gtk+-devel zlib-devel openssl openssl-devel pcre-devel keyutils patch perl kernel-headers compat* cpp glibc libgomp libstdc++-devel keyutils-libs-devel libsepol-devel libselinux-devel krb5-devel libXpm* freetype freetype-devel freetype* fontconfig fontconfig-devel gettext gettext-devel ncurses* libtool* libxml2 libxml2-devel patch policycoreutils libjpeg libjpeg-devel libidn libidn-devel libpng libpng-devel glibc glibc-devel libjpeg* libpng* glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel bison expect ntp elinks wget vim*
如果Yum源在本地,则需要安装如下基础库:
# yum -yt groupinstall "Development Tools" "Development Libraries"
2.安装Cmake:
# cd /usr/local/src/
# wget -c http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz
# tar zxvf cmake-2.8.12.tar.gz
# cd cmake-2.8.12
# ./configure
# make ; make install
3.安装MySQL数据库:
# cd /usr/local/src/
# wget -c ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz
# tar zxvf mysql-5.6.14.tar.gz
# cd mysql-5.6.14
# cmake . -LAH --查看详细编译选项
# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.6/ -DMYSQL_DATADIR=/mysql5.6/ -DSYSCONFDIR=/usr/local/mysql5.6/ -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/usr/local/mysql5.6/tmp/mysql.sock -DMYSQL_TCP_PORT=3306 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_COMMENT="mysql5.6" -Wno-dev
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯