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