Mysql binary Compiler-free installation

Source: Internet
Author: User

Download down the package, after the decompression will have an installation documentation, usually called a readme or install, look at the installation process, there must be make the source package. Another is through the name, the specification of the package, will be in the name to mark what it is, the source package name will not add any decoration, such as the MySQL source package, is the mysql-version number. tar.gz and compiler-free packages will be marked with i686 or x86_64 words.


Cd/usr/local/src

wget mysql.tar.gz

Tar zxf mysql.tar.gz

MV Mysql/usr/local/scr/mysql

Mkdir-p/data/mysql

Useradd-s/sbin/nologin-m MySQL

Chown-r Mysql:mysql/data/mysql

Cd/usr/local/src/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

Basedir=/usr/local/src/mysql

Datadir=/data/mysql






Mysql binary Compiler-free installation

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.