yum install -y gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* //安裝編譯環境gcc
rz上傳cmake-2.8.8.tar.gz和mysql-5.5.32.tar.gz
tar xf cmake-2.8.8.tar.gz //解壓make
cd cmake-2.8.8 //進入cmake目錄
./configure //編譯cmake
gmake //安裝gmake
gmake install //安裝gmake
cd .. //退出cmake目錄
groupadd mysql //建立組
useradd mysql -s /sbin/nologin -m -g mysql //建立使用者屬於mysql組
tar xf mysql-5.5.32.tar.gz //解壓mysql
cd mysql-5.5.32 //進入mysql目錄
輸入以下內容並回車
-dextra_charsets=gbk,gb2312,utf8,ascii \
-denabled_local_infile=on \
-dwith_innobase_storage_engine=1 \
-dwith_federated_storage_engine=1 \
-dwith_blackhole_storage_engine=1 \
-dwithout_example_storage_engine=1 \
-dwithout_partition_storage_engine=1 \
-dwith_fast_mutexes=1 \
-dwith_zlib=bundled \
-denabled_local_infile=1 \
-dwith_readline=1 \
-dwith_embedded_server=1 \
-dwith_debug=0
make && make install //安裝mysql
cd .. //退出mysql目錄
cp mysql-5.5.32/support-files/my-small.cnf /etc/my.cnf
source /etc/profile //即時生效
chmod -r 1777 /tmp/ //資料夾賦權
cd .. //退出
cd /home/oldboy/tools/mysql-5.5.32 //進入目錄
cp support-files/mysql.server /etc/init.d/mysqld //建立開機自啟動檔案
chmod +x /etc/init.d/mysqld //資料夾賦權
/etc/init.d/mysqld start //啟動mysql服務
mysql //進入mysql
select user,host from mysql.user; //檢視是否有空使用者
delete from mysql.user where user=''; //刪除空使用者
delete from mysql.user where host='::1'; //刪除::1
quit //退出mysql
chkconfig mysqld on //設定開機啟動
mysql -uroot -poldboy123 //測試是否可以進入,密碼是否正確
make安裝mysql make安裝mysql
yum install y gcc gcc c gcc g77 autoconf automake zlib fiex libxml ncurses devel libmcrypt libtool ltdl devel 安裝編譯環境gcc rz上傳cmake 2.8.8.tar.gz和mysql 5...
make安裝mysql make安裝mysql
yum install y gcc gcc c gcc g77 autoconf automake zlib fiex libxml ncurses devel libmcrypt libtool ltdl devel 安裝編譯環境gcc rz上傳cmake 2.8.8.tar.gz和mysql 5...
postfix 初次安裝 make 出錯
make f makefile.in makelevel makefiles echo do not edit this file documents how postfix was built for your machine.bin sh makedefs makedefs.tmp no inc...