System version: centos6.6_64 minimal mode
Software version: Mysql-5.1.40-linux-x86_64-icc-glibc23.tar.gz h
The installation process is as follows:
Shutting down the firewall and SELinux
Service Iptables Stop
Vim/etc/sysconfi/selinux//Modified: 7 selinux=disabled
Sync;reboot//Save and restart
Yum install-y epel-release gcc ntpdate//install Epel extension source for easy installation of dependent packages
cd/usr/local/src/
Tar zxvf mysql-5.1.40-linux-x86_64-icc-glibc23.tar.gz
MV Mysql-5.1.40-linux-x86_64-icc-glibc23/usr/local/mysql
Groupadd MySQL
Useradd-g mysql-s/sbin/nologin-m MySQL
Mkdir-p/data/mysql
Chown-r Mysql:mysql/data/mysql
cd/usr/local/mysql/
./scripts/mysql_install_db--user=mysql--datadir=/data/mysql
CP SUPPORT-FILES/MY-LARGE.CNF/ETC/MY.CNF
CP Support-files/mysql.server/etc/init.d/mysqld
chmod 755/etc/init.d/mysqld
VIM/ETC/INIT.D/MYSQLD//set path
.....................................................................................
Basedir=/usr/local/mysql
Datadir=/data/mysql
.....................................................................................
VIM/ETC/MY.CNF//Red font for Add content set encoding to UTF8
.....................................................................................
Follows entries for some specific programs
[MySQL]
Default-character-set = UTF8
25
# The MySQL server
[Mysqld]
character_set_server = UTF8
Port = 3306
.....................................................................................
Chkconfig--add mysqld
Chkconfig mysqld on
Service mysqld Start
MySQL Error reference: http://blog.csdn.net/wwj_905/article/details/48000559
This article is from the "Rookie Growth Road" blog, please be sure to keep this source http://francis905.blog.51cto.com/3048056/1721911
Source Code Compilation Installation mysql-5.1.40