This article talks about how to install the mysql database through source code compilation
Preparatory work
1. In order to avoid port conflicts, program conflicts, etc., it is recommended to uninstall the mysql and mysql-server software packages installed using rpm first
2.MySQL version 5.5 or later needs to use the cmake tool to compile and install, so you must install the cmake tool before installing MySQL (the installation method is as follows)
3. Mount the software CD (before mounting, check if there are other CDs already mounted. If so, use the umount command to uninstall and then remount the CD with the MySQL software package. )
#Compile and install: unpack, configure, compile and install
1. Unpacking (unpacking means decompressing the installation package in the CD to the local, usually to the /usr/src directory)
2. Configuration (configuration is to formulate different options based on the actual application needs of the server, such as specifying the installation path, enabling character sets, etc., similar to windows Custom installation of software, but it is more flexible in Linux)
3. Compile (compile is to use after completing the configuration) The "make" command compiles source code files to generate binary program modules, dynamic link libraries, executable files, etc. Just enter make and press Enter)
4. Installation (after compilation is completed, execute the "make install" installation command, copy the software's execution program, configuration files, help documents and other related files to the Linux system, install it, enter make install and press Enter)
The above is the detailed content of How to install MySQL database from source code?. For more information, please follow other related articles on the PHP Chinese website!