# chgrp -R mysql . #设定mysql组能够访问/usr/local/mysql
设置完成后,基本上就装好了,好了,我们运行一下我们的mysql:
# /usr/local/mysql/bin/mysqld_safe --user=mysql &
出现如下提示:
# /usr/local/mysql/bin/mysqld_safe --user=mysql &
[2] 7022
# Starting mysqld daemon with databases from /usr/local/mysql/var
# ps -ef
ps: Process environment requires procfs(5)
PID TT STAT TIME COMMAND
1040 v0 Is+ 0:00.00 /usr/libexec/getty Pc ttyv0
723 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1
724 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2
725 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3
726 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4
727 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5
728 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6
729 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7
7022 p0 S 0:00.01 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
7038 p0 R+ 0:00.00 ps -ef
上述信息表明MySQL安装成功
为了每次系统重启后都能运行mysql,可以写一个脚本放到 /etc/rc.d目录下,用来运行mysql,我们写一个脚本mysql_start.sh
#! /bin/sh
/usr/local/mysql/bin/mysqld_safe&
然后保存到/etc/rc.d目录下,那么以后reboot系统后都能启动mysql了.
MySQL的安装是最顺利的一个
三、安装PHP
去http://www.php.net网站上去下载php-5.2.5的源码包
标签: