启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' ”
2016-11-03 17:04
886 查看
一、Mac OS X的升级或其他原因可能会导致MySQL启动或开机自动运行时
在MySQL操作面板上会提示“Warning:The /usr/local/mysql/data directory is not owned by the ‘mysql‘ or ‘_mysql‘ ”,
这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变,
只需要运行
mac 下面运行
-c 显示更改的部分的信息
-f 忽略错误信息
-h 修复符号链接
-R 处理指定目录以及其子目录下的所有文件
-v 显示详细的处理信息
二、what is wheel
在Linux中wheel组就类似于一个管理员的组。
通常在LUNIX下,即使我们有系统管理员root的权限,也不推荐用root用户登录。一般情况下用普通用户登录就可以了,在需要root权限执行一些操作时,再su登录成为root用户。但是,任何人只要知道了root的密码,就都可以通过su命令来登录为root用户–这无疑为系统带来了安全隐患。所以,将普通用户加入到wheel组,被加入的这个普通用户就成了管理员组内的用户,但如果不对一些相关的配置文件进行配置,这个管理员组内的用户与普通用户也没什么区别–就像警察下班后,没有带枪、穿这便衣和普通人(用户)一样,虽然他的的确确是警察。
根据应用的实例不同应用wheel组的方法也不同。这里对于服务器来说,我们希望的是剥夺被加入到wheel组用户以外的普通用户通过su命令来登录为root的机会(只有属于wheel组的用户才可以用su登录为root)。这样就进一步增强了系统的安全性。
三、查看用户组
cat /etc/group | grep [group_name]
转自:
http://www.bubuko.com/infodetail-501104.html
在MySQL操作面板上会提示“Warning:The /usr/local/mysql/data directory is not owned by the ‘mysql‘ or ‘_mysql‘ ”,
这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变,
只需要运行
“sudo chown -R mysql /usr/local/mysql/data”即可
mac 下面运行
“sudo chown -R _mysql:wheel /usr/local/mysql/data”
-c 显示更改的部分的信息
-f 忽略错误信息
-h 修复符号链接
-R 处理指定目录以及其子目录下的所有文件
-v 显示详细的处理信息
二、what is wheel
在Linux中wheel组就类似于一个管理员的组。
通常在LUNIX下,即使我们有系统管理员root的权限,也不推荐用root用户登录。一般情况下用普通用户登录就可以了,在需要root权限执行一些操作时,再su登录成为root用户。但是,任何人只要知道了root的密码,就都可以通过su命令来登录为root用户–这无疑为系统带来了安全隐患。所以,将普通用户加入到wheel组,被加入的这个普通用户就成了管理员组内的用户,但如果不对一些相关的配置文件进行配置,这个管理员组内的用户与普通用户也没什么区别–就像警察下班后,没有带枪、穿这便衣和普通人(用户)一样,虽然他的的确确是警察。
根据应用的实例不同应用wheel组的方法也不同。这里对于服务器来说,我们希望的是剥夺被加入到wheel组用户以外的普通用户通过su命令来登录为root的机会(只有属于wheel组的用户才可以用su登录为root)。这样就进一步增强了系统的安全性。
三、查看用户组
cat /etc/group | grep [group_name]
转自:
http://www.bubuko.com/infodetail-501104.html
相关文章推荐
- mac 在偏好设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_my
- mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mys
- mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mys
- mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by
- mac os Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
- Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'的解决办法
- mac mysql没法启动 Waring:The /usr/local/mysql/data directory is not owned by the mysql/_mysql
- mysql无法开启:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
- Warring the /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user
- mysql无法开启:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
- Warning the user/local/mysql/data directory is not owned by the mysql user
- mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable
- mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable
- 解决问题:The directory '/Users/Parthenon/Library/Logs/pi' or its parent directory is not owned by the
- 启动mysql服务失败The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).[失败]
- Android模拟器启动失败解决方案(ERROR: the user data image is used by another emulator. aborting)
- Android模拟器启动失败解决方案(ERROR: the user data image is used by another emulator. aborting)
- 解决Qt for Embedded Linux data directory is not owned by user 0h 错误提示 问题
- "The /usr/local directory is not writable."解决方法
- 如何消除matlAB启动时的Warning:Name is nonexistent or not a directory ...