Home > Article > Backend Development > How to install mysql database in linux php
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.
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!