關鍵字:mysql無法啟動辦事,mysql卡死,InnoDB"" registration as a STORAGE ENGINE failed.Unknown/unsupported table type: innodb.
前幾天,啟動mysql時,忽然報1067體系錯誤,死活無法啟動。
當時不管三七二十八,重裝,清空注冊表,重啟,任然沒辦法啟動。
老是在安裝后的設備那邊最后一步啟動辦事的界面卡死,半天沒反響。
折騰了兩三個小時,才猛然想起,該去看看日記,
110223 15:58:08 [Note] Plugin ""FEDERATED"" is disabled.
110223 15:58:08 InnoDB: Initializing buffer pool, size = 17.0M
110223 15:58:08 InnoDB: Completed initialization of buffer pool
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html
110223 15:58:08 [ERROR] Plugin ""InnoDB"" init function returned error.
110223 15:58:08 [ERROR] Plugin ""InnoDB"" registration as a STORAGE ENGINE failed.
110223 15:58:08 [ERROR] Unknown/unsupported table type: innodb
110223 15:58:08 [ERROR] Aborting
大意是innodb初始化失敗,不熟悉innodb類型。
google了一下,把my.ini文件打開,更改default-storage-engine=innodb為default-storage-engine=myism
啟動成功。然則建表時找不到innodb引擎了。
但想着,也不克不及老如許啊,如許innodb也用不了了,有google了一下,主如果innodb日記大小不合錯誤造成的
innodb_buffer_pool_size=512M
innodb_log_file_size=128M
把以上幾個參數調大點,然后把ibdata1,ib_logfile0,ib_logfile1這三個文件刪除后,再重啟辦事就好了。
若是還是不可,在my.ini文件里還須要參加tmpdir="usr/tmp"如許的路徑,因為innodb還須要一個姑且的文件緩存區。
還碰到的題目是暗碼正確,但GUI對象無法登岸,可以先用設置設備擺設法度批改暗碼,然后在號令行下登岸刷新權限就可以了。flush privilege.
記錄下來,僅供碰到此類題目的同窗參考。