2

我正在(重新)在我的 Mac(Snow Leopard)上安装 MySQL 5.5.23,并且由于我有两个卷,其中一个的空间比启动卷大得多,我想将其配置为将其所有数据写入更大的卷而不是引导卷。

我尝试将数据目录移动到我的另一个卷并使用安装目录中的符号链接,但我无法将符号链接的所有权设置为与目录最初拥有的所有权相同......并且 MySQL 不再开始。我找不到日志来查看它尝试启动时会发生什么,但我认为它不喜欢我目前的安排。

有人有做这项工作的经验吗?

ETA:我在我的 macbook.local.err 文件中找到了这个:

120423 13:01:21 [ERROR] /usr/local/mysql/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120423 13:01:21 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
...
^G/usr/local/mysql/bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120423 14:16:55 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
4

1 回答 1

3

Edit MySQL's my.cnf file so that it's datadir variable (the data directory, usually /var/lib/mysql on Linux machines) is set to a folder of the new volume.

于 2012-04-23T17:12:19.473 回答