跳到主要內容

[網站筆記]人生很難,特別是MySQL跑不動。差點就升天了

  
要達到這張圖,我真的駛出洪荒之力了啊,E04

MySQL跑不動的原因很多。

這裡就不多贅述了,我花了一天跟這玩意兒奮鬥,終於跑出一個我看得懂的系統解釋,解決掉我的麻煩,少挨了一頓罵。

以下是MySQLy的 Logs跑出的一段人類可理解的話:

 InnoDB: Error: could not open single-table tablespace file .\tua@002djm\@0023__session.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.
真心誠意地告訴各位,如果可以的話,請想盡辦法看懂logs裡的內容,真的是浮木。
我遇到的問題剛好是屬於 2) If the table is not needed, or you can restore it from a backup,then you can remove the .ibd file, and InnoDB will do a normal crash recovery and ignore that table.
所以參照第一行所說的:
 Error: could not open single-table tablespace file .\tua@002djm\@0023__session.ibd
找到出問題的檔案,然後快樂的刪除掉之後,我的XAMPP就復活了,我的老天爺~~~

留言

這個網誌中的熱門文章

台鐵便當之神奇排骨飯

真不可思議的台鐵便當,排骨使用了一個膨風的概念製作,透過不停的捶打冶煉出極薄的肉片,搭配等厚的麵粉皮下去滷,味道其實很好,但是心態不可恭維。

[網站筆記]youtube影片嵌入,尺寸符合手機和電腦

因為工作需求,將youtube影片嵌入網站後,為了要能在手機和PC都能顯示出漂亮的大小,再加上Joomla遇到了一些小麻煩之後,發現似乎要寫成下方的html才能好看的顯示出來: <div style="position: relative; height: 0; padding-bottom: 56.25%;"> <iframe src="https://www.youtube.com/embed/*******?rel=0&amp;controls=0&amp;showinfo=0;&amp;autoplay=1" width="100%" height="450" style="position: absolute; width: 100%; height: 100%; left: 0;" frameborder="0" allowfullscreen="allowfullscreen"></iframe> </div> 不知為何寫成min-height或是max-width都沒反應,不過向上方這樣補上 style="position: absolute; width: 100%; height: 100%; left: 0;"   就可以合乎行動裝置和PC的尺寸。

復古的保養品:真珠膏,出乎意料的痘痘肌隔離霜

只要是女性就不可能沒有瓶瓶罐罐! 這句話個人認為是真理,女性真的很辛苦,要對抗的不只是柴米油鹽醬醋茶,還要抵抗皮膚老化,不使用保養品根本是不可能的事! 與其說是寵愛自己,我覺得認真使用保養品的女性是抱著激勵自己的心情在使用保養品呢。