MySQL 匯入資料時max_allowed_packet超出的問題

來源:互聯網
上載者:User

最近做了小測試,就是把項目中Oracle的資料匯入到mysql中,使用的mysql migration tool 進行資料移轉,在遷移完以後,探索資料有些丟失,查看遷移報告才發現有個max_allowed_packet超出了系統設定的上限,沒有遷移成功,可以修改此變數的值,

修改此變數的值:MySQL安裝目錄下的my.ini檔案中的[mysqld]段中的"max_allowed_packet = 1M",如更改為4M(如果沒有這行內容,增加一行),儲存,然後要重起MySQL服務。現在可以載入大於1M的檔案了。

相關文章

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.