Percona-Server-5.5.15源码安装

[[email protected] rpm]# ll

total 19148

-rw-r--r-- 1 root root   562628 Jan 18  2007 bison-2.3-2.1.x86_64.rpm

-rw-r--r-- 1 root root     7375 Jan 18  2007 bison-devel-2.3-2.1.x86_64.rpm

-rw-r--r-- 1 root root  3935585 Mar  4  2010 gcc-c++-4.1.2-48.el5.x86_64.rpm

-rw-r--r-- 1 root root    11716 Mar  4  2010 libaio-devel-0.3.106-5.x86_64.rpm

-rw-r--r-- 1 root root   481930 Apr  2  2008 make-3.81-3.el5.x86_64.rpm

-rw-r--r-- 1 root root  1790863 Jan 18  2007 ncurses-devel-5.5-24.20060715.x86_64.rpm

-rw-r--r-- 1 root root 12771327 Jul 13  2009 perl-5.8.8-27.el5.x86_64.rpm

[[email protected] rpm]# rpm -ivh bison-2.3-2.1.x86_64.rpm

warning: bison-2.3-2.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

package bison-2.3-2.1.x86_64 is already installed

[[email protected] rpm]# rpm -ivh bison-devel-2.3-2.1.x86_64.rpm

warning: bison-devel-2.3-2.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

1:bison-devel            ########################################### [100%]

[[email protected] rpm]# rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm

warning: gcc-c++-4.1.2-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

package gcc-c++-4.1.2-48.el5.x86_64 is already installed

[[email protected] rpm]# rpm -ivh libaio-devel-0.3.106-5.x86_64.rpm

warning: libaio-devel-0.3.106-5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

1:libaio-devel           ########################################### [100%]

[[email protected] rpm]# rpm -ivh make-3.81-3.el5.x86_64.rpm

warning: make-3.81-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

package make-3.81-3.el5.x86_64 is already installed

[[email protected] rpm]# rpm -ivh ncurses-devel-5.5-24.20060715.x86_64.rpm

warning: ncurses-devel-5.5-24.20060715.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

package ncurses-devel-5.5-24.20060715.x86_64 is already installed

[[email protected] rpm]# rpm -ivh perl-5.8.8-27.el5.x86_64.rpm

warning: perl-5.8.8-27.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

package perl-5.8.8-27.el5.x86_64 is already installed

[[email protected] rpm]#

Mysql5.5后通过cmake来编译,cmake-2.8.12.2.tar.gz 所以需要下载安装

下载地址:http://www.cmake.org/cmake/resources/software.html

tar zxvf cmake-2.8.7.tar.gz

cd cmake-2.8.12.2

./configure --prefix=/usr/local/cmake

make && make install

[[email protected] rpm]# ll /usr/local/cmake/

total 16

drwxr-xr-x 2 root root 4096 Jun 30 12:37 bin

drwxr-xr-x 3 root root 4096 Jun 30 12:37 doc

drwxr-xr-x 3 root root 4096 Jun 30 12:37 man

drwxr-xr-x 4 root root 4096 Jun 30 12:37 share

[[email protected] bin]# pwd

/usr/local/cmake/bin

[[email protected] bin]# ll

total 40060

-rwxr-xr-x 1 root root  9732202 Jun 30 12:36 ccmake

-rwxr-xr-x 1 root root  9608089 Jun 30 12:36 cmake

-rwxr-xr-x 1 root root 10139179 Jun 30 12:36 cpack

-rwxr-xr-x 1 root root 11467963 Jun 30 12:36 ctest

[email protected] ~]# vi .bash_profile

把/usr/local/cmake/bin 加入环境变量

[[email protected] ~]# source .bash_profile

[[email protected] ~]# groupadd mysql

[[email protected] ~]# useradd -g mysql -s /sbin/nologin -M mysql



[[email protected] Percona-Server-5.5.15-rel21.0]# tar zxf Percona-Server-5.5.15-rel21.0.tar.gz -C /usr/local/src/

[[email protected] Percona-Server-5.5.15-rel21.0]# pwd

/usr/local/src/Percona-Server-5.5.15-rel21.0

[[email protected] Percona-Server-5.5.15-rel21.0]#cmake \

-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \

-DSYSCONFDIR=/etc \

-DMYSQL_DATADIR=/var/lib/mysql \

-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \

-DMYSQL_USER=mysql \

-DMYSQL_TCP_PORT=3306 \

-DWITH_MYISAM_STORAGE_ENGINE=1 \

-DWITH_INNOBASE_STORAGE_ENGINE=1 \

-DWITH_MEMORY_STORAGE_ENGINE=1 \

-DWITH_PARTITION_STORAGE_ENGINE=1 \

-DEXTRA_CHARSETS=all \

-DDEFAULT_CHARSET=utf8 \

-DDEFAULT_COLLATION=utf8_general_ci \

-DENABLED_LOCAL_INFILE=1 \

-DWITH_READLINE=1

[[email protected] Percona-Server-5.5.15-rel21.0]# make && make install

[[email protected] mysql]# pwd

/usr/local/mysql

[[email protected] mysql]# ll

total 76

drwxr-xr-x  2 root root  4096 Jun 30 12:57 bin

-rw-r--r--  1 root root 17987 Jul 13  2011 COPYING

drwxr-xr-x  4 root root  4096 Jun 30 12:57 data

drwxr-xr-x  2 root root  4096 Jun 30 12:57 docs

drwxr-xr-x  3 root root  4096 Jun 30 12:57 include

-rw-r--r--  1 root root  7604 Jul 13  2011 INSTALL-BINARY

drwxr-xr-x  3 root root  4096 Jun 30 12:57 lib

drwxr-xr-x  4 root root  4096 Jun 30 12:57 man

drwxr-xr-x 10 root root  4096 Jun 30 12:57 mysql-test

-rw-r--r--  1 root root  2552 Jul 13  2011 README

drwxr-xr-x  2 root root  4096 Jun 30 12:57 scripts

drwxr-xr-x 27 root root  4096 Jun 30 12:57 share

drwxr-xr-x  4 root root  4096 Jun 30 12:57 sql-bench

drwxr-xr-x  2 root root  4096 Jun 30 12:57 support-files

[[email protected] mysql]#

# cd /usr/local/mysql/

# ./scripts/mysql_install_db --user=mysql --datadir=/var/lib/mysql

# cp support-files/mysql.server /etc/init.d/mysqld

# chkconfig --add mysqld

# service mysql start

时间: 2024-10-05 12:12:45

Percona-Server-5.5.15源码安装的相关文章

Apache HTTP Server的源码安装配置及实现

Apache HTTP Server简介 Linux下最有名的.功能最丰富的WEB服务器就属Apache HTTP Server(简称Apache). Apache HTTP Server是Apache软件基金会最有名的开源项目之一,它可以在大多数操作系统上运行. 目前官网的主要版本为2.2和2.4.CentOS 6使用2.2版本,CentOS 7使用2.4版本. 目前生产环境中部署2.2版本的居多,但是2.4版本有很多新的特性,下面就简要说明以下: (1)运行时动态可装载MPM 在2.4版本中

源码安装Apache,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server's fully qualified domain name

一.解决APR和APR-util错误: 1.1.安装APR: [[email protected] httpd-2.2.23]# cd srclib/apr [[email protected] apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# make && make install 1.2.安装APR-util: [[email protected] apr]# cd ../apr-util/ [[email pr

CentOS 7.4下源码安装 Apache HTTP Server(httpd-2.4.35)

CentOS 7.4下源码安装 Apache HTTP Server(httpd-2.4.35) 前提:确保安装了expat-devel, APR包 (apr-1.6.3.tar.gz 和 apr-util-1.6.1.tar.gz); 用YUM方式安装expat-devel 和 apr-util-devel yum -y install expat-devel yum -y install apr-util-devel 解压apr-1.6.3.tar.gz后进入该目录下,执行: ./confi

PHP-5.3.27源码安装及nginx-fastcgi配置

源码安装php cat /etc/redhat-release uname -rm wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo yum install -y zlib-devel libxml2-devel libjpeg-turbo-devel freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel opens

源码安装zabbix(lnmp+zabbix)

源码安装zabbix 实验环境: [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m 环境要求: 需要准备好实验环境,配置好主机名称 , 网络源(这里我使用的是163网络源),查看并调整好自己的时区以及时间,关闭防火墙iptables   selinux. 安装nginx 需要软件有: nginx-1.8.0.tar.gz  pcre-8.34.tar.gz 安装步骤: 首选安装:

Ubuntu15.04下源码安装MySQL5.6.26数据库

解决Ubuntu 15.04版下源码编译安装MySQL5.6.26数据库问题,这里提供依赖包下载,源码安装方法. (1)安装编译源码需要的包 sudoapt-get install make cmake gcc g++ bison libncurses5-dev 依赖包在博客附件里有下载.下面也有说明一些解决方法. 另外的:cmake-2.8.3.tar.gz安装啊.bison_3.0.2.dfsg-2_i386.deb.ncurses-5.9.tar.gz的依赖缺少的话自己可以去下载安装,由于

centos下lamp源码安装

LAMP指的Linux(操作系统).ApacheHTTP 服务器,MySQL(有时也指MariaDB,数据库软件) 和PHP(有时也是指Perl或Python) 的第一个字母,一般用来建立web 服务器. 安装mysql这里我们用的是mysql-5.6.15-linux-glibc2.5-x86_64.tar.gz的绿色软件包 解压mysql绿色软件包 [[email protected] lamp]# tar -zxvf mysql-5.6.15-linux-glibc2.5-x86_64.t

zabbix源码安装流程及报错解决方法

zabbix源码安装流程及报错解决方法 一. zabbix的介绍 1) zabbix是什么 zabbix是一款基于web页面的.开源的.企业级的,支持分布式部署的监控软件. 2)2.zabbix的作用 监控windows和Linux主机上的软硬件状态. 监控各网络设备,如路由器.交换机.防火墙.f5.打印机等. 支持邮件短信微信等平台发送告警通知. 通过web页面及图形展示监控数据. 3)zabbix的特性 由zabbix server和agent程序协同工作,还支持分布式监控,这时需要安装za

Centos 7.0 编译安装LNMP(Linxu+nginx+mysql+php)之源码安装nginx (一)

nginx简介:       Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器.Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,第一个公开版本0.1.0发布于2004年10月4日. 其将源代码以类BSD许可证的形式发布,因它的稳定性.丰富的功能集.示例配置文件和低系统资源的消耗而闻名.2011年6月1日,nginx 1.0.4发布. Nginx是一款轻量级的Web 服务器