无法在MAC OS X 10.7.5中启动mysql

时间:2012-10-18 16:04:56

标签: mysql macos

我通过位于MySQL站点的软件包安装了MySQL。

我更改了这个目录:

/usr/local/mysql-5.5.28-osx10.5-x86/data

_mysql

然而,当我尝试启动mysqld时,我收到以下错误和警告:

121018 18:04:17 [Warning] Can't create test file /usr/local/mysql-5.5.28-osx10.5-x86/data/homer.lower-test
121018 18:04:17 [Warning] Can't create test file /usr/local/mysql-5.5.28-osx10.5-x86/data/homer.lower-test
121018 18:04:17 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
121018 18:04:17 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
121018 18:04:17 InnoDB: The InnoDB memory heap is disabled
121018 18:04:17 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
121018 18:04:17 InnoDB: Compressed tables use zlib 1.2.3
121018 18:04:17 InnoDB: Initializing buffer pool, size = 128.0M
121018 18:04:17 InnoDB: Completed initialization of buffer pool
121018 18:04:17  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.

有关可能发生的事情的任何提示?

1 个答案:

答案 0 :(得分:0)

最简单的方法是安装下载后获得的系统偏好设置插件,然后使用它启动/停止MySQL。您可以将其设置为在系统重新启动时自动启动。