![](/img/trans.png)
[英]CakePHP 3: Moved datadir/socket for mysql, now getting SQLSTATE error
[英]Moved XAMPP folder to new computer, now getting “(XAMPPErrorDomain error 1.)” when trying to start up MySQL
我最近不得不在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.
“當我檢查它生成的錯誤文件時,我看到了:
“
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的Macbook改為Scott的Mac B ook。 在我必須擦除驅動器並重新安裝所有內容之前,它在10.7上工作正常。
權限問題,干脆就可以了
chmod -R 777 /Applications/XAMPP/xamppfiles/var
你很高興去。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.