【发布时间】:2011-10-31 07:50:36
【问题描述】:
我最近不得不在我的 MacBook 上重新安装 Lion。我保存了我的 XAMPP 文件夹并将其移动到新安装的应用程序文件夹中。我可以启动 Apache,但不能启动 MySQL。我收到此错误:“The operation couldn’t be completed. (XAMPPErrorDomain error 1.)”。
我尝试将 var/mysql 的权限设置为 775 和 777,均未成功。
我尝试在终端中运行“sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start”,我得到了这个:“
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
" 当我检查它生成的错误文件时,我看到了这个:
"
110820 14:41:20 mysqld_safe Starting mysqld daemon with databases from /Applications/XAMPP/xamppfiles/var/mysql
110820 14:41:20 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
110820 14:41:20 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
110820 14:41:20 [Warning] Setting lower_case_table_names=2 because file system for /Applications/XAMPP/xamppfiles/var/mysql/ is case insensitive
110820 14:41:20 [Note] Plugin 'FEDERATED' is disabled.
110820 14:41:20 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: 'open'.
InnoDB: Cannot continue operation.
110820 14:41:20 mysqld_safe mysqld from pid file /Applications/XAMPP/xamppfiles/var/mysql/hex-sha6-ev11435.concordia.ca.pid ended
"
有什么想法吗?从我的旧操作系统安装到我的新操作系统的唯一变化是计算机的名称从 Scott's Macbook 更改为 Scott's MacBook。在我不得不擦除驱动器并重新安装所有内容之前,它在 10.7 上运行良好。
【问题讨论】: