CentOS under binary compiler-free installation MySQL

Source: Internet
Author: User

  1. Download the binary-free compiler package.

    wget http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.73-linux-i686-glibc23.tar.gz

    Du-sh check size, probably more than 100 m. Note the version of System 32 or 64, next to version.

  2. Extract.

    TAR-ZXVF plus file name.

    echo $? Check whether normal, normal feedback value is 0, abnormal based on feedback error.

  3. Create a MySQL run account.

    Useradd-s/sbin/nolongin (do not log in)-M (do not set up home directory) MySQL

  4. Move Rename

    MV Mysql-5.1.1.73-linux-i686-glibc23/usr/local/mysql

    Cd/usr/local/mysql

    Create the Data directory

    Mkdir-p/data/mysql

    Permission changes

    Chown-r Mysql/data/mysql

    Initialization

    ./scripts/mysql_install_db--user=mysql--datadir=/data/mysql/

    Attention Check echo $?

  5. View Configuration

    Ls

    CD Soppurt-files

    Ls

    CP MY-LARGE.CNF/ETC/MY.CNF

    Overwrite Y

    Vim!$

    Binlog (Logging, note # is not open)

  6. Copy Startup scripts

    Ls/etc/init.d

    CP Mysql.server/etc/init.d/mysqld

    Vim $!

    Find the following items to modify save

    basedir=/usr/local/mysql/

    datadir=/data/mysql/

  7. Join launch

    Chkconfig--add mysqld

    Chkonfig mysqld on

    /etc/init.d/mysqld start

    PS aux |grep MySQL

    NETSTAT-LNP |grep MySQL

    Pay attention to check if there are any errors.

This article is from the "Endless Sand rolling" blog, please be sure to keep this source http://loveemily.blog.51cto.com/6205266/1775074

CentOS under binary compiler-free installation MySQL

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.