服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(35)

Centos5.2配置LAMP与Centos5.3配置LAMP(35)

2019-10-11 14:12Centos教程网 Centos

hints about installing MySQL on your platform. Also have a look at the files in the Docs directory. Thank you for choosing MySQL! # make 编译的时间可能会比较长,毕竟优化的比较厉害。

hints about installing MySQL on your platform. Also have a look at the 
files in the Docs directory. 
Thank you for choosing MySQL! 
# make 
编译的时间可能会比较长,毕竟优化的比较厉害。 
# make install 
编译安装完成后执行后续操作: 
# useradd mysql //添加 mysql 用户 
# cd /usr/local/mysql 
# bin/mysql_install_db --user=mysql 
# chown -R root:mysql . //设置权限,注意后面有一个 "." 
# chown -R mysql /var/lib/mysql //设置 mysql 目录权限 
# chgrp -R mysql . //注意后面有一个 "." 
# cp share/mysql/my-medium.cnf /etc/my.cnf 
# cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //开机自动启动 mysql。 
# chmod 755 /etc/rc.d/init.d/mysqld 
# chkconfig --add mysqld 
#添加LIB PATH 
echo "/usr/local/mysql/lib" >> /etc/ld.so.conf && ldconfig 
vi /etc/my.cnf 
修改 MySQL 配置,增加部分优化参数,如下: 
[mysqld] 

延伸 · 阅读

精彩推荐