Windows伺服器MySQL啟動失敗怎麼辦

來源:互聯網
上載者:User

一,設定檔正確,清除緩衝

1.遇到這個問題先不要急著重新安裝MySQL資料庫,其實解決方案很簡單,人需要清理下WIndows的緩衝目錄就可以了。
2.按“windows鍵+R”開啟運行對話方塊,輸入命令“cmd”,斷行符號開啟DOS視窗。

3.輸入“del c:\windows\temp\*.* /s /q”,等待檔案刪除完,MySQL自然會恢複正常。

二,設定檔配置錯誤(mysql啟動錯誤1067的解決 )


問題一

刪除%windows%/my.ini 刪除其它地方的my.ini 在mysql安裝目錄下把my-small.ini複製為my.ini 在my.ini

最後一行插入: CODE: [mysqld] #設定basedir指向mysql的安裝路徑

basedir=C:mysql-5.1.11-beta-win32 datadir=C:mysql-5.1.11-beta-win32data

重新啟動。。。

C:mysql-5.1.11-beta-win32in>net start mysql MySQL

服務正在啟動 . MySQL 服務無法啟動。 系統出錯。

發生系統錯誤 1067。 進程意外終止。

C:mysql-5.1.11-beta-win32in>mysqld-nt --remove Service successfully removed.
C:mysql-5.1.11-beta-win32in>mysqld-nt --install Service successfully installed.
C:mysql-5.1.11-beta-win32in>net start mysql MySQL 服務正在啟動 . MySQL 服務已經啟動成功。 C:mysql-5.1.11-beta-win32in>net stop mysql MySQL 服務正在停止.. MySQL 服務已成功停止。

問題二

Mysql裝好後,重啟電腦第二次探索服務無法啟動。提示如下:
 
------------------------
 
MySQL 服務無法啟動。
系統出錯。
發生系統錯誤 1067。
進程意外終止。
 
------------------
 
查看了F:ProgramDataMySQLMySQL Server 5.5data 這個目錄中的錯誤記錄檔,顯示如下內容:
 
130825 20:47:50 [Note] Plugin 'FEDERATED' is disabled.
130825 20:47:50 InnoDB: The InnoDB memory heap is disabled
130825 20:47:50 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130825 20:47:50 InnoDB: Compressed tables use zlib 1.2.3
130825 20:47:50  InnoDB: Error: unable to create temporary file; errno: 2
130825 20:47:50 [ERROR] Plugin 'InnoDB' init function returned error.
130825 20:47:50 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130825 20:47:50 [ERROR] Unknown/unsupported storage engine: INNODB
130825 20:47:50 [ERROR] Aborting
 
其中核心提示是這句,臨時檔案無法建立:
 
130825 20:47:50  InnoDB: Error: unable to create temporary file; errno: 2
 
因此查看my.ini
 
[mysqld]區段內加入:
#自己指定的臨時檔案目錄
tmpdir="臨時目錄"

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.