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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
