2013-01-25 187 views
0

我剛剛從Windows 7升級到Windows 8,但很多設置或文件已更改,我不能再連接到MySQL數據庫。InnoDB錯誤MySQL的Windows 8

以下是錯誤我得到:

130124 23:56:02 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\Randy-PC.lower-test 
130124 23:56:02 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\Randy-PC.lower-test 
130124 23:56:02 [Note] Plugin 'FEDERATED' is disabled. 
130124 23:56:03 InnoDB: The InnoDB memory heap is disabled 
130124 23:56:03 InnoDB: Mutexes and rw_locks use Windows interlocked functions 
130124 23:56:03 InnoDB: Compressed tables use zlib 1.2.3 
130124 23:56:03 InnoDB: Initializing buffer pool, size = 128.0M 
130124 23:56:03 InnoDB: Completed initialization of buffer pool 
130124 23:56:03 InnoDB: Operating system error number 5 in a file operation. 
InnoDB: The error means mysqld does not have the access rights to 
InnoDB: the directory. It may also be you have created a subdirectory 
InnoDB: of the same name as a data file. 
InnoDB: File name .\ibdata1 
InnoDB: File operation call: 'open'. 
InnoDB: Cannot continue operation. 
  1. 我能做些什麼讓我的數據庫,並再次運行?

非常感謝所有幫助!

+0

這個問題最好在dba.stackexchange上提問。 – spencer7593

回答

1

最可能的解釋是,Windows 8升級修改了MySQL數據目錄的權限。

從錯誤信息,它看起來像你的InnoDB的數據目錄可能是C:\Program Files\MySQL\MySQL Server 5.5\data

使用Windows資源管理器瀏覽到該目錄,右鍵點擊,打開屬性,然後單擊安全選項卡上。 MySQL服務正在運行的服務帳戶需要具有對該目錄的完全訪問權限(所有權限)。當你點擊編輯時,有兩列複選框允許和拒絕...完全控制,修改,執行&等)

(注意:我沒有運行Windows 8.在我的Windows 7上系統,數據目錄是C:\ProgramData\MySQL\MySQL Server 5.5\data\

+0

謝謝,那正是我的問題。似乎有2個帳戶與我的名字。我想,從Windows 7剩下的一個。 – CodeKingPlusPlus