2012-10-18 402 views
0

我通過位於MySQL站點的軟件包安裝了MySQL。無法在MAC OS X中啓動mysql 10.7.5

我改變了這個目錄:

/usr/local/mysql-5.5.28-osx10.5-x86/data 

對於_mysql

但是,當我嘗試做mysqld的啓動,我收到以下錯誤和警告:

121018 18:04:17 [Warning] Can't create test file /usr/local/mysql-5.5.28-osx10.5-x86/data/homer.lower-test 
121018 18:04:17 [Warning] Can't create test file /usr/local/mysql-5.5.28-osx10.5-x86/data/homer.lower-test 
121018 18:04:17 [Note] Plugin 'FEDERATED' is disabled. 
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 
121018 18:04:17 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 
121018 18:04:17 InnoDB: The InnoDB memory heap is disabled 
121018 18:04:17 InnoDB: Mutexes and rw_locks use InnoDB's own implementation 
121018 18:04:17 InnoDB: Compressed tables use zlib 1.2.3 
121018 18:04:17 InnoDB: Initializing buffer pool, size = 128.0M 
121018 18:04:17 InnoDB: Completed initialization of buffer pool 
121018 18:04:17 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: 'create'. 
InnoDB: Cannot continue operation. 

任何小費會發生什麼?

回答

0

最簡單的事情就是安裝系統首選項插件,通過下載和啓動/停止MySQL使用它。您可以將其設置爲在系統重新啓動時自動啓動。