Apache2 + MOD

xiaoxiao2021-03-06  180

Original address: http://blog.njmars.com/myhan/archive/2004/07/17/219.aspx

The so-called lamp, Apache PHP is certainly not supported by mysql. Below I simply say the mysql installation configuration.

I didn't use the source code compilation. MySQL provided a two-way bag compiled under various platforms. It is very convenient to say that 俺 is a lazy person.

First download mysql's binary package: You can find the release under various platforms in mysql4.0: http: //dev.mysql.com/downloads/mysql/4.0.html Download the binary package under Linux here: http: / /dev.mysql.com/get/downloads/mysql-4.0/mysql-standard-4.0.20-pc-linux-i686.tar.gz/from/http://mysql.linuxForum.net/ Decompression, mysql There is an install-binary file in the catalog, there is a very detailed binary installation instruction. Below I just list the steps I installed, for your reference.

Unzipped # TAR ZXVF mysql-standard-4.0.20-pc-linux-i686.tar.gz -c / usr / local # cd / usr / local # mv mysql-standard-4.0.20-PC-Linux-i686 mysql

Add a mysql user group and user, I point my home directory of this account to my mysql installation directory, and let the account not login # groupadd mysql # useradd -g mysql -d / usr / local / mysql -s / sbin / NOLOGIN MYSQL

According to the instructions inside Install-binary, a step in one step is configured mysql: # scripts / mysql_install_db --user = mysql # chown -r root. # Chown -r mysql data # chgrp -r mySQL.

OK, it's so simple, start mysql: # /usr/local/mysql/support-files/mysql.server start

See if mysql is already up? # ps -ef

Installing Directory / USR / LOCAL / MYSQL The following LIB / and Include / inside the content is to compile the library and header files to be used in PHP5.

转载请注明原文地址:https://www.9cbs.com/read-128768.html

New Post(0)