InnoDB:启动mamp时无法锁定错误45

时间:2011-04-06 22:05:10

标签: mysql innodb mamp

我正在将数据库for mamp移动到我的删除驱动器,它几乎正常工作我想但每当我启动mamp mysql将无法启动,如果我检查错误日志我遇到了这个:

110406 23:00:12 mysqld_safe Starting mysqld daemon with databases from /Volumes/WALL-E/db/mysql
110406 23:00:12 [Warning] One can only use the --user switch if running as root

110406 23:00:12 [Note] Plugin 'FEDERATED' is disabled.
110406 23:00:12 InnoDB: The InnoDB memory heap is disabled
110406 23:00:12 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
110406 23:00:12 InnoDB: Compressed tables use zlib 1.2.3
110406 23:00:12 InnoDB: Initializing buffer pool, size = 128.0M
110406 23:00:12 InnoDB: Completed initialization of buffer pool
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
110406 23:00:13  InnoDB: Retrying to lock the first data file
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45
InnoDB: Unable to lock /Volumes/WALL-E/db/mysql/ibdata1, error: 45

我也发现了这个问题但似乎无法找到让MAMP工作的方法,我做错了什么,这是一个权限问题吗?

PS - 是的,我的驱动器名为WALL-E:)

1 个答案:

答案 0 :(得分:0)

文件系统级文件锁定可能存在问题。尝试使用--skip-locking启动Mysql。我不知道如何使用MAMP,因为我从未使用过它。在其首选项中查找可以为启动提供自定义选项的位置。

另外,您可能需要自定义可移动媒体的安装以启用autofs锁,但我的autofs-fu很弱,所以我无法在那里给出任何指示。