mysql資料庫匯入sql檔案不成功,mysql資料庫sql

來源:互聯網
上載者:User

mysql資料庫匯入sql檔案不成功,mysql資料庫sql
sqlyog匯入資料檔案問題,一直提醒:
There was an error while executing a query.
The query and the error message has been logged at:
C:\Users\liang\AppData\Roaming\SQLyog\sqlyog.err.

Please click on "Open Error File..." to open the error file.


解決方案如下:

在mysql的安裝路徑中找到my.ini,修改參數配置

[mysqld]下面添加:max_allowed_packet=768M 參數大小自己定

修改完畢後重啟mysql服務(net stop mysql關閉,net start mysql 啟動;或在電腦-->管理-->服務中找到mysql手動重啟)

進入mysql查看是否成功
show variables like '%max_allowed_packet%';

顯示如下:
max_allowed_packet       | 805306368 說明修改成功了


相關文章

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.