search
HomeBackend DevelopmentPHP ProblemHow to install mysql database in linux php

How to install mysql database in linux php

Jul 14, 2020 am 09:24 AM
linuxmysqlphp

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Safe Exam Browser

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

Notepad++7.3.1

Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function