Source Code Compilation Installation mysql-5.1.40

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.