Home > Database > Mysql Tutorial > body text

How to install MySQL database from source code?

黄舟
Release: 2017-08-03 09:14:27
Original
1446 people have browsed it

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

How to install MySQL database from source code?

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)

How to install MySQL database from source code?

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. )

How to install MySQL database from source code?

#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)

How to install MySQL database from source code?

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)

How to install MySQL database from source code?

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)

How to install MySQL database from source code?

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)

How to install MySQL database from source code?


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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template