對大家推薦很好使用的Linux mysql系統
Linux mysqlapache php 安裝過程
Linux mysql 安裝
cd /home/tmp
groupadd mysql
useradd
tar
cd mysql
make
make install
cd /usr/local/mysql
chown
bin/mysql
chgrp
cd /home/tmp
cd mysql
ln
cp support
修改f 在[sqld]下面添加user=mysql
chown root /etc/f
chgrp root /ect/f
chmod
/usr/local/mysql/bin/mysqld_safe
cp support
chmod
chkconfig
chkconfig
/usr/local/mysql/bin/mysql_install_db
/usr/local/mysql/bin/mysql
edit /etc/f
[client] + default
apache安裝
tar
cd
make
history
make install
cp /usr/local/apache
chmod
/usr/local/apache
php的安裝
cd /home/tmp
tar
cd php
Linux mysql
make install修改apache (apache/conf/)添加如下部分
cp php
/usr/local/apache
/usr/local/apache
/usr/local/apache
附
/usr/local/mysql/bin/mysql
use mysql;
SELECT `Host`
UPDATE user SET `Host` =
flush privileges;
注意在mysql 命令行形式下一定要輸入
v經過configure就可以make了
Linux mysql
make install注意pdo_mysql的全路徑
/usr/local/php/lib/php/extensions/debug
然後在/usr/local/lib/php
加上一句
extension=/usr/local/php/lib/php/extensions/debug
重新啟動apache即可看到已經加載pdo_mysql成功
From:http://tw.wingwit.com/Article/program/MySQL/201311/29457.html