找不到“./mysql/user.MYD"(错误代码:2 - 没有这样的文件或目录) [英] './mysql/user.MYD' not found (Errcode: 2 - No such file or directory)

查看:224
本文介绍了找不到“./mysql/user.MYD"(错误代码:2 - 没有这样的文件或目录)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用brew install mysql"在 Mac Os 10.13 上安装了 mysql,当尝试按照 brew 通过命令 mysql_secure_installation 设置密码时,它抛出错误.任何人都可以请指导我

I have installed mysql on Mac Os 10.13 using ' brew install mysql' and when trying to set a password as suggested by brew by command mysql_secure_installation, it throws up an error. Can anyone please guide me

提前致谢

推荐答案

当你多次安装 mysql 时会发生这种情况打开终端,然后

This happens when you install mysql more than once so Open Terminal and then

cd/usr/local

cd /usr/local

打开.

确保最新的 mysql 安装文件夹名为mysql";通过删除任何其他名为mysql"的文件夹;并将最后一个重命名为mysql"

Make sure that the latest mysql installed folder is called "mysql" by deleting any other folders called "mysql" and rename the last one as "mysql"

这篇关于找不到“./mysql/user.MYD"(错误代码:2 - 没有这样的文件或目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆