iT邦幫忙

0

MySQL 匯入表空間時出現錯誤 Error Code: 2013.

Table 大約 16000 筆資料
檔案大小約 31 MB

執行步驟:
0. 確認資料結構相同

  1. lock table
  2. discard tablespace
  3. copy table.ibd file
  4. chown -R mysql.mysql table.ibd
  5. import tablespace

錯誤訊息:
alter table table import tablespace Error Code: 2013. Lost connection to MySQL server during query 0.515 sec

嘗試方法:
MySQL Workbench 調整:
Edit > Preferences > SQL Editor

  1. DBMS connection read time out(in seconds) : 300
  2. DBMS connection time out(in seconds) : 600

my.ini 設定檔
max_allowed_packet = 128M
net_read_timeout = 600
net_write_timeout = 600
connect_timeout = 50

但仍然出現相同錯誤訊息,請教各位大大有沒有解決過這樣的問題?
如果有什麼不夠清楚的我會趕快補清楚。

小魚 iT邦大師 1 級 ‧ 2018-08-13 16:34:27 檢舉
斷線了...
對,確實是斷線了。但是就是碰到這個 Table 時才會出現這個錯誤。
不知道大大是否有個方向可以指點我一下,感恩!因為他只執行了 0.515 秒就斷了。
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答