標籤:單機多執行個體 多設定檔
1.安裝環境:[[email protected] ~]#[[email protected] ~]# uname -aLinux localhost.localdomain 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux[[email protected] ~]# [[email protected] ~]# uname -r2.6.32-504.16.2.el6.x86_64[[email protected] ~]# [[email protected] ~]# cat /etc/redhat-release CentOS release 6.6 (Final)[[email protected] ~]# 2.下載相應的cmake,mysql-5.5.32源碼包:[[email protected] ~]# cd /usr/local/src/[[email protected] src]# lltotal 29580-rw-r--r--. 1 root root 5691656 Apr 14 13:42 cmake-2.8.8.tar.gz-rw-r--r--. 1 root root 24596474 Apr 14 13:44 mysql-5.5.32.tar.gz[[email protected] src]# [[email protected] src]# tar -zxvf cmake-2.8.8.tar.gz [[email protected] src]# echo $?0[[email protected] src]# cd cmake-2.8.8[[email protected] cmake-2.8.8]# yum install gcc gcc-c++[[email protected] cmake-2.8.8]# ./configure [[email protected] cmake-2.8.8]# gmake &&gmake install[[email protected] cmake-2.8.8]# cd ..[[email protected] src]# tar -xf mysql-5.5.32.tar.gz [[email protected] src]# [[email protected] src]# cd mysql-5.5.32[[email protected] mysql-5.5.32]# groupadd mysql[[email protected] mysql-5.5.32]# useradd mysql -g mysql -M -s /sbin/nologin [[email protected] mysql-5.5.32]#
本文出自 “MySQL_db” 部落格,請務必保留此出處http://mysqldb.blog.51cto.com/10264653/1655422
基於mysql-5.5.32的單機多執行個體多設定檔的