MYSQL5.5 source installed under Linux

Source: Internet
Author: User

Install the necessary libraries first

Yum-y Install gcc*


###### Install MYSQL ######
first install camke 
One, Yum is supported,

Yum Install-y CMake


Second, the source can also be installed

cd/usr/local/src# download Cmakewget Http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gztar zxvf CMAKE-2.8.7.TAR.GZCD cmake-2.8.7# Installing Cmake./configuremakemake Install


install MYSQL
download MYSQL5.5 version of Linux under the source package
HTTP://DEV.MYSQL.COM/DOWNLOADS/
install

Groupadd mysqluseradd-g mysql mysqltar zxvf mysql-5.2.25.tar.gzcd mysql-5.2.25


#cmake   .              //installed by default, the installation directory is/usr/local/ mysql   Data Directory is/usr/local/mysql/data
#也可以指定参数安装, such as specifying UTF8, data engine, etc.
#具体参照 http://dev.mysql.com/doc/refman/... ration-options.html

Cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/mysql/data-ddefault_charset=utf8-ddefault_ Collation=utf8_general_ci-dwith_extra_charsets:string=all-dwith_debug=0-dwith_ssl=yes-dwith_readline=1- Denabled_local_infile=1echo $?makeecho $?make installecho $?cd/usr/local/mysql chown-r mysql:mysql/usr/local/mysql. scripts/mysql_install_db--user=mysql-datadir=/mysql/data# If you do not specify DataDir here, you will get an error chown-r root when booting. chown-r MySQL DATACP Support-files/my-medium.cnf/etc/my.cnfbin/mysqld_safe--user=mysql &# Next command is OPTIONALCP Support-files/mysql.server/etc/init.d/mysqldchmod +x/etc/init.d/mysqld/etc/init.d/mysqld Start


Here, the installation is complete



This article is from "Xiao Yang" blog, please be sure to keep this source http://aqiang.blog.51cto.com/6086626/1895543

MYSQL5.5 source installed under Linux

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.