Mysql源码编译安装&主从复制
一)camke源码编译安装mysql 1)创建软件安装目录software 1 [root@master software]# ls 2 cmake-2.8.8.tar.gz mysql-5.5.32 .tar.gz 3 [root@master software]# 2)解压cmak软件 1 [root@master software]# tar xf cmake-2.8.8 .tar.gz 2 [root@master software]# ls 3 cmake-2.8.8 cmake-2.8.8.tar.gz mysql-5.5.32 .tar.gz 4 [root@master software]# cd cmake-2.8.8/ 3)在cmake目录下编译 1 [root@master software]# ./ configure 2 [root@master software]# gmake 3 [root@master software]# gmake install 4 [root@master software]# cd../ 4)安装依赖包 1 [root@master software]# yum install ncurses-devel -y 5)创建mysql组,并创建mysql用户指定mysql组且不能登录 1 [root@master