3.配置mysql
以my.cnf作为以后mysql设定档
/usr/local/bin/mysql_install_db
#whereis mysql_install_db #查看命令档的执行路径
修改用户组权限
#chown -R mysql:mysql /var/db/mysql
#chown -R mysql:mysql /usr/local/share/mysql
#chmod 744 /usr/local/share/mysql/mysql.server
#/usr/local/bin/mysql_install_db #初始化数据库
cp /usr/local/share/mysql/mysql.server /usr/local/etc/rc.d/mysql-server.sh #创建启动脚本
/usr/local/etc/rc.d/mysql-server.sh start #启动mysql