Home  >  Article  >  Backend Development  >  How to install mysql database in linux php

How to install mysql database in linux php

藏色散人
藏色散人Original
2020-07-14 09:24:162926browse

How to install the mysql database in linux php: first find the source code on the mysql official website; then use the "tar -zxvf" command to decompress it; then enter the mysql directory; finally complete the installation through the "make install" command.

How to install mysql database in linux php

Steps to install php, mysql, apche on linux

Source code installation php

Find the link to the 5.6.40 tar package on the PHP official website

Use wget link in the user home directory (cd ~) on Linux

tar -zxvf compressed package name to decompress

Enter the downloaded php-5.6.40 directory and use

./configure     --prefix=/usr/local/php5.6   --enable-fpm

Make in the current directory

Make install in the current directory

Return to the previous directory Create a new test.php test file

Run the php file /use/local/php5.6/bin/php test.php

Install mysql

Find the source code on the mysql official website. Generic Linux (Architecture Independent), Compressed TAR Archive

linux general version. Find the download link.

Use wget link in linux

tar -zxvf compressed package name to decompress

yum install  cmake    gcc-c++   ncurses-devel  perl-Data-Dumper  boost boost-doc  boost-devel

Enter the directory of mysql cmake .

make
make install

Apache

Official search link

wget link

Enter the decompressed directory./configure --prefix=/usr/local/apache2.4

http://apr.apache.org/download.cgi Reference article

For more related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to install mysql database in linux php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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