跳到主要內容

[網站筆記]人生很難,特別是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的尺寸。

EXCEPT Xiaolongbao, THE PINEAPPLE CAKE IS ALSO FAMOUS.除了小籠包,我們還有鳳梨酥

問台灣人什麼東西最有名,得到的答案大概多如牛毛。 Ask "What's the FAMOUS thing in Tawian" to Taiwanese, we will have many kinda answers. 以前可能會說食物名稱,現在可能會說撿屍體( 對,就是你想的那個。) Before the answear mabey is food, but now, we will say" picking a drunk "(yes, you can guess it.)