Redhat linux on MySQL install-binary package installation

Source: Internet
Author: User
Tags mysql manual

FrontspeaktheMySQL rpmInstallation package of the installation method, the literatureXInext twointoinstallation, itsRealtwointoSystem Installation MoreSimple, twointosystem is alreadybywashas been compiledthe GenerationCode, you can directly solvepressureafter the configuration is used,Summaryits characteristic is:

1. Easy Installation

2. Can specify the installation directory, more flexible

3. Multiple MySQL can be installed on a single server

But there is a problem is, has been compiled, performance is obviously not as good as the source code compiled installation, and can not flexibly customize the compilation parameters, the code has been compiled, unzip it into a directory can see its installation package files, the specific file directory to protect the following content:

Directory

Contents of Directory

bin , Scripts

mysqld Server, client and utility programs

Data

Log files, databases

Docs

MySQL Manual in Info format

Mans

Unix manual Pages

Include

Include (header) files

Lib

Libraries

Share

Miscellaneous support files, including error messages, sample configuration files, SQL for database installation

Solution pressure that is, install:

Shell> tar zxvf/path/to/mysql-version-os.tar.gz shell> ln-s full-path-to-mysql-version-os MySQL

than RPM Install the package to say , two into Package installation requires manual Chong built-in User:

shell> Groupadd MySQL
Shell> Useradd-r-G mysql-s/bin/false MySQL
Shell> cd/usr/local
Shell> Tar zxvf/path/to/mysql-version-os.tar.gz
shell> ln-s Full-path-to-mysql-version-os MySQL
shell> cd MySQL shell> mkdir mysql-files
shell> chmod mysql-files
Shell> chown-r MySQL.
Shell> chgrp-r MySQL.
Shell> bin/mysql_install_db--user=mysql # before MySQL 5.7.6
shell> bin/mysqld--initialize--user=mysql # mysql 5.7.6 and up
shell> bin/mysql_ssl_rsa_setup # mysql 5.7.6 and up
Shell> chown-r Root.
shell> chown-r MySQL Data mysql-files
Shell> bin/mysqld_safe--user=mysql & # Next command is optional shell> CP Support-files/mysql.server/etc/init. D/mysql.server

this the installation is complete, you can see the main still is to use Household Rights Limit problem need to be configured well.


This article is from the "Marvelyu's Notes" blog, so be sure to keep this source http://marvelyu.blog.51cto.com/471030/1747808

Redhat linux on MySQL install-binary package 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.