mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mys
来源:互联网 发布:知轩藏书下载 编辑:程序博客网 时间:2024/05/29 17:40
原文地址:
http://blog.csdn.net/gaixm/article/details/49422511
在MySQL操作面板上会提示“Warning:The /usr/local/MySQL/data directory is not owned by the ‘mysql‘ or ‘_mysql‘
”,
只需要运行“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)。这样就进一步增强了系统的安全性。
- 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 在偏好设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_my
- 启动mysql 失败,“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'的解决办法
- Warring the /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user
- 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'
- mysql无法开启:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
- mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable
- 启动mysql服务失败The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).[失败]
- WARNING: The host 'localhost' could not be looked up with /usr/local/mysql//bin/resolveip
- 解决问题: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/ubuntu.pid)
- mysql启动之 ERROR! The server quit without updating PID file (/usr/local/mysql/data/gujingdeMacBook-Pro
- #2002 - 服务器没有响应 (or the local MySQL server's socket is not correctly configured)
- #2002 - 服务器没有响应 (or the local MySQL server's socket is not ...
- Arrays.copyOfRange的用法
- 学习HTML
- 同步和异步+阻塞和非阻塞
- git使用小结
- windows server 2012 IE增强的安全配置如何关闭
- mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mys
- 【一步步学OpenGL 27】 -《公告牌技术与几何着色器》
- poj 3069 Saruman's Army
- 基础算法(三)---快速排序(Java)
- python2 与python3 input变化
- HDU
- 模态、下拉菜单 、切换标签页 区别 (Bootstrap)
- Windows PE变形练手3-把通用模板机器码直接覆盖目标PE
- Java抽象类与接口的区别