摘要:
centos6.8怎么用yum安装apachemysql5.1php5.6?httpd.conf里需要配置加载php模块比如:LoadModulephp5_module/usr/l...
centos6.8怎么用yum安装apachemysql5.1php5.6?
httpd.conf里需要配置加载php模块比如:LoadModulephp5_module/usr/lib/httpd/modules/libphp5.so
linux下mysql怎么启动不了了?
修改mysql配置文件
vi /etc/my.cnf
1.[client]
default-character-set=utf8
2.[ mysqld]
character-set-server=utf8
collation-server = utf8_general_ci
生成MySQL配置文件
setfacl -m u:mysql:rwx -R /usr/local/mysql
setfacl -m d:u:mysql:rwx -R /usr/local/mysql
用acl来让mysql用户对/usr/local/mysql有所有权限
/usr/local/mysql/bin/mysql_install_db --user=mysql
创建数据库授权表
启动MySQL服务:
1.用原本源代码的方式去使用和启动mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
2.重启以后还要生效:
vi /etc/rc.local
/usr/local/mysql/bin/mysqld_safe --user=mysql &