文件“./mysql-bin.index”在 OSX 10.5 上的 MySql 启动时找不到
我在 mac OSX 10.5 上手动安装了 MySql 5.5,而不是使用 .dmg 软件包安装程序。 执行完所有安装步骤后,当我使用 sudo 模式启动 sql server 时,出现以下错误,并且服务器未启动。
/usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110808 21:22:12 [ERROR] Aborting
我在 /usr/local/msql 目录中的任何位置都找不到 ./mysql-bin.index 文件。
谁能告诉我如何解决这个问题? 谢谢。
I did a manual setup for the installation of MySql 5.5 on mac OSX 10.5 instead of using .dmg package installer.
After following all the installation steps when I started the sql server with sudo mode I got the following error and the server did not start.
/usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110808 21:22:12 [ERROR] Aborting
I cannot find ./mysql-bin.index file anywhere in my /usr/local/msql directory.
Can anyone tell how to get around this problem?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为问题是这个文件夹
/usr/local/msql
的权限。更改权限:然后重新启动 MySQL 服务器。
I think the problem is permissions of this folder
/usr/local/msql
. Change the permissions with:Then restart the MySQL server.
这可能意味着 mysql deamon 无权写入数据目录。
即使您以root身份启动mysqld_safe,mysqld守护进程也可能(取决于配置)以非root(例如mysql)用户身份启动。该用户需要对各种目录具有读写权限,包括数据目录、日志目录、运行目录等......
This probably means mysql deamon has not got permissions to write to the data directory.
Even if you start mysqld_safe as root, the mysqld deamon will likely (depending on configuration) start as non-root (mysql for example) user. That user needs to have read write permission to various directories including data directory, log directory, run directory etc...
这意味着您已启用二进制日志记录。这是你需要的东西吗?
它通常是复制过程所必需的,或者可能作为备份,否则没有它一切都可以正常工作。
您可以通过注释 log-bin 行来禁用它。索引文件的路径是通过 my.cnf 配置文件中 [mysqld] 部分下的 log-bin-index 参数指定的。
This means you have binary logging enabled. Is this something you need?
It is usually required for the replication process or as a backup perhaps, otherwise everything works fine without it.
You disable it by commenting the log-bin line. The path for the index file is specified through the log-bin-index parameter under the [mysqld] section in my.cnf configuration file.