我已經安裝了mysql並且它工作正常。在將數據目錄與simlink連接到另一個數據庫後,Mysql不會啓動
現在我喜歡在我的保管箱中保存好幾個數據庫的數據。所以我把符號鏈接放在我的mysql數據目錄中。
sudo ln -s /Users/michaelbenker/Dropbox/geschaeft/softwareentwicklung/DB/testdatabase /usr/local/mysql/data/testdatabase
現在,當我試圖重啓MySQL,我得到的錯誤
ERROR! MySQL server PID file could not be found!
Starting MySQL
. ERROR! The server quit without updating PID file
(/usr/local/mysql/data/Michaels-iMac-783.local.pid).
在我的錯誤文件,我發現這個條目
2017-05-26T11:29:12.067923Z 0 [ERROR] InnoDB: Operating system error
number 13 in a file operation.
2017-05-26T11:29:12.067928Z 0 [ERROR] InnoDB: The error means mysqld
does not have the access rights to the directory.
2017-05-26T11:29:12.067934Z 0 [ERROR] InnoDB:
os_file_readdir_next_file() returned -1 in directory ./, crash recovery
may have failed for some .ibd files!
2017-05-26T11:29:12.067963Z 0 [ERROR] InnoDB: Plugin initialization
aborted with error Generic error
2017-05-26T11:29:12.375057Z 0 [ERROR] Plugin 'InnoDB' init function
returned error.
2017-05-26T11:29:12.375090Z 0 [ERROR] Plugin 'InnoDB' registration as a
STORAGE ENGINE failed.
2017-05-26T11:29:12.375097Z 0 [ERROR] Failed to initialize plugins.
2017-05-26T11:29:12.375100Z 0 [ERROR] Aborting
所以,我想幾件事情來改變權限到我的Dropbox數據目錄
- 我tr滅蠅燈,以改變所有者到MySQL(也_mysql試過)
- 我試圖將組更改爲MySQL的(也試過_mysql)
- 我試圖使用chmod改爲777
沒有什麼幫助。
我在MacBook上做了同樣的事情,在這裏一切正常。
這裏對Dropbox的迪爾的實際權限
[email protected] 5 _mysql _mysql 170 26 Mai 13:02 DB
使用linux作爲您的開發平臺嗎?或者更好的安裝Docker! –