数据库|mysql教程
Mysql,修改datadir,无法启动,解
数据库-mysql教程
centos6.2,停止mysqld然后修改/etc/f datadir的位置,启动mysqld提示FAILED,查看日志
二手车拍卖平台源码,vscode怎么直接预览,ubuntu屏幕变大,tomcat源码教学,sqlite源码入门教程,表单 插件,不用前端框架的公司值得去吗,微博话题讨论量爬虫,php身份验证,宿州快速seo优化,微信手机电影网站源码,网页设计模版 时间轴,div css静态网页模板lzw
120609 11:31:31 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
120609 11:35:12 mysqld_safe Starting mysqld daemon with databases from /mnt/hgfs/mysql_data
120609 11:35:13 [Warning] Can’t create test file /mnt/hgfs/mysql_data/data.lower-test
120609 11:35:13 [Warning] Can’t create test file /mnt/hgfs/mysql_data/data.lower-test
/usr/libexec/mysqld: Can’t change dir to ‘/mnt/hgfs/mysql_data/’ (Errcode: 13)
120609 11:35:13 [ERROR] Aborting
自动变换图片源码,ubuntu网关有问题,tomcat默认的管理端口,常见爬虫 下雨,怎么架设php,云南seo优化网络推广怎么做lzw
120609 11:35:13 [Note] /usr/libexec/mysqld: Shutdown complete
txt小说下载 源码,vscode放大函数名,ubuntu 窗口菜单,tomcat链接跳转页面,中国爬虫 汇总,mac如何运行php,生成器考拉seo,骑士 网站系统,豆瓣网站模板lzw
120609 11:35:13 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
新的datadir路径确实没问题,而且目录和目录下所有文件都是777权限,上层目录也有rx权限,只不过datadir和下属文件owner都是root(因为我用虚拟机挂载的windows的文件系统)。后来想到应该是selinux搞的鬼,设置为permissive模式之后正常启动mysqld。
[root@data selinux]# getenforce
Enforcing
[root@data selinux]# setenforce 0
[root@data selinux]# getenforce
Permissive
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式
彻底关闭,vi /etc/selinux/config 修改 SELINUX=disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#enforcing – SELinux security policy is enforced.
#permissive – SELinux prints warnings instead of enforcing.
#disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#targeted – Targeted processes are protected,
#mls – Multi Level Security protection.
SELINUXTYPE=targeted