The rpm installation package is usually a Binary package or a Source package. When using the source code to install MySQL, the source code package downloaded on the official website is usually in scrrpm format, rather than a direct tar package, you must first use the rpm command to install the Source code rpm installation package in Binary and Source. When using the source code to install MySQL, the source code package downloaded on the official website is usually scr. rpm format, rather than the direct tar package. to solve this problem, you must first use the rpm command to install the source code and then compile and install it. This article describes this method.
1. download the source code package
2. install rpm
# After installation, the tar file of its source code is usually located in the/usr/src directory.
For example, the installation source file of mysqlis mysql-5.6.21.tar.gz.
# Decompress the tar file
3. install MySQL with source code