将XAMPP文件夹移动到新计算机,在尝试启动MySQL时现在得到"(XAMPPErrorDomain错误1.)"

Sco*_*ler 6 mysql xampp macos

我最近不得不在MacBook上从头开始重新安装Lion.我保存了我的XAMPP文件夹并将其移动到我的新安装中的applications文件夹中.我可以启动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.
Run Code Online (Sandbox Code Playgroud)

"当我检查它生成的错误文件时,我看到了:

"

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
Run Code Online (Sandbox Code Playgroud)

"

有任何想法吗?从我的旧操作系统安装到我的新操作系统的唯一变化是将计算机的名称从Scott的Macbook改为Scott的Mac B ook.在我必须擦除驱动器并重新安装所有内容之前,它在10.7上工作正常.

Abi*_*usX 13

权限问题,干脆就可以了

chmod -R 777 /Applications/XAMPP/xamppfiles/var

你很高兴去.