Home  >  Article  >  Database  >  静态/动态编译Apache+php+mysql_MySQL

静态/动态编译Apache+php+mysql_MySQL

WBOY
WBOYOriginal
2016-06-01 14:03:27766browse

Apache

所需软件: T p^XN.7  
(hRf4SM  
apache:1.3.27 q,9&0l!  
yAs#i#  
php: 4.3.2 :O#Au`$c\  
9|$^Jh"  
mysql:4.0.13 6e%|[00@.  
J/ tm;  
首先来安装mysql ^ RP6[1Q  
?g4Rb,!HO9  
tar zvxf mysql-4.0.13.tar.gz <`-_ F  
0iytcV  
cd mysql-4.0.13 p27 /h?  
>?,^ &va  
./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql cU;,^a* w1  
su|r_<.> 
make JFme !B  
uDGOCHl  
make install RgE"*Q  
p_QD.Q)E:  
安装完成。 t:S]; }  
\Kea|% AT  
然后初始化数据库 2w!}@Tq^  
hgI\A:9  
/usr/local/mysql/bin/mysql_install_db --user=mysql PaPE]Rykoe  
7^* &I&  
设置权限: ^q@PUVR;]z  
CMyPb4^  
chown -R root /usr/local/mysql Jo1Oa(d+>  
,.Mj0)ke  
chown -R mysql /usr/local/mysql/var 8hE;$>J\  
S 8w=4  
chgrp -R mysql /usr/local/mysql Se'>z#U  
lVMz!_of  
复制配置文件; Hc]q{`q*w  
[NCP6h >  
cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf ?%`/z3t  
d.Jm&e'v  
启动mysql: fuwx8  
7y!zg IC  
/use/local/mysql/bin/mysqld_safe --user=mysql & S-P`X~&  
_45G

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