婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > optimize table出錯解決方法

optimize table出錯解決方法

熱門標簽:灰谷地圖標注 省份地圖標注 陽江智能電銷機器人 南寧銷售電銷機器人廠家 辦理400電話怎么劃傷 科研地圖標注 平頂山手機自動外呼系統違法嗎 江蘇客服外呼系統怎么樣 地圖標注軌跡
一個某某庫大概360W,為了提高查詢效率,做點優化,使用optimize table table.name;出現Table does not support optimize, doing recreate + analyze instead
果斷谷歌,查到一段E文。。。

Everytime you do optimize MySQL, by using mysqlcheck -A -o or using ./mysql_optimize from here.
You may see the output

Table does not support optimize, doing recreate + analyze instead.

It is because the table that you are using is InnoDB.

You can optimize the InnoDB tables by using this.

復制代碼
代碼如下:

ALTER TABLE table.name ENGINE='InnoDB';

This will create a copy of the original table, and drop the original table, and replace to the original place.

Although this is safe, but I suggest you do backup and test first before doing this.

原來如此,大致意思是說innodb的數據庫不支持optimize,可以用
ALTER TABLE table.name ENGINE='InnoDB';
該方法會對舊表以復制的方式新建一個新表,然后刪除舊表。雖然這個過程是安全的,但是在進行操作時還是先進行備份為好

還有一種方式:

You can make OPTIMIZE TABLE work on other storage engines by starting mysqld with the --skip-new or --safe-mode option. In this case, OPTIMIZE TABLE is just mapped toALTER TABLE.

上面是說要求我們在啟動的時候指定--skip-new或者--safe-mode選項來支持optimize功能

標簽:玉樹 儋州 玉溪 通化 瀘州 蕪湖 泰安 臨汾

巨人網絡通訊聲明:本文標題《optimize table出錯解決方法》,本文關鍵詞  optimize,table,出錯,解決,方法,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《optimize table出錯解決方法》相關的同類信息!
  • 本頁收集關于optimize table出錯解決方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 宝应县| 卫辉市| 丹东市| 竹北市| 军事| 张家港市| 郑州市| 六安市| 贡嘎县| 湖口县| 伊宁县| 朝阳县| 安化县| 常德市| 泾阳县| 江安县| 江门市| 深圳市| 苏尼特左旗| 五峰| 扎兰屯市| 广丰县| 涞水县| 炉霍县| 宁河县| 宜章县| 仁布县| 嘉祥县| 高雄县| 涞源县| 中山市| 老河口市| 新竹市| 调兵山市| 新巴尔虎左旗| 河北区| 九龙城区| 合肥市| 伊金霍洛旗| 平陆县| 富川|