There are three common ways to install MySQL: rpm package form common binary form source code compilation
There are three common ways to install MySQL: rpm package form common binary form source code compilation
There are three common ways to install MySQL:
1. rpm package format
(1) provided by the operating system publisher
(2) officially provided by MySQL (version updates, fixed more common bugs)
Introduction to the rpm package type in MySQL:
Installation Method: First, you can download the rpm package of the corresponding version from the installation disc or to the mysql website as follows:
MySQL-server-community-5.5.28-1.rhel5.i386.rpm
MySQL-client-community-5.5.28-1.rhel5.i386.rpmThen we can use the rpm command for installation:
Rpm-ivh MySQL-server-community-5.5.28-1.rhel5.i386.rpm
Rpm-ivh MySQL-client-community-5.5.28-1.rhel5.i386.rpmAdd:
-H use the symbol # display the installation progress
-V: report operations in each step2. General Binary Package (1) create a user to run the process safely: (3) provide the main configuration file for mysql:
# Cd/usr/local/mysql
# Cp support-files/my-large.cnf/etc/my. cnf(4) modify the configuration file: (5) provide the sysv service script for mysql:
# Cd/usr/local/mysql
# Cp support-files/mysql. server/etc/rc. d/init. d/mysqld(6) Add to service list:
# Chkconfig -- add mysqld
# Chkconfig mysqld on(7) Then you can start the service test. # Service mysqld start
Recommended reading:
How to install MySQL in Linux
Instructions on installing and configuring MySQL on CentOS
MySQL installation and basic management in Linux
Install and upgrade MySQL in Linux under VMware
To continue reading the highlights of this article, please refer to page 2nd: