opencms安裝出現下面的問題:Your'max_allowed_p_MySQL
來源:懂視網
責編:小采
時間:2020-11-09 20:06:40
opencms安裝出現下面的問題:Your'max_allowed_p_MySQL
opencms安裝出現下面的問題:Your'max_allowed_p_MySQL:一、問題 在安裝opencms是會出現如下錯誤: MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB). Please note that it will not be possible for OpenCms to handle files big
導讀opencms安裝出現下面的問題:Your'max_allowed_p_MySQL:一、問題 在安裝opencms是會出現如下錯誤: MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB). Please note that it will not be possible for OpenCms to handle files big
一、問題
在安裝opencms是會出現如下錯誤:
MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB).
Please note that it will not be possible for OpenCms to handle files bigger than this value in the VFS.
Error while checking the server configuration!
-------------------------------------------
Your 'max_allowed_packet' variable is set to less than 16777216 Byte (16MB).
The required value for running OpenCms is at least 16MB.Please change your MySQL configuration (in the my.ini or my.cnf file).
2、解決方法
這個問題是因為導入的sql文件大于系統默認的max_allowed_packet的值,解決方法:比如在my.cnf修改增加到:max_allowed_packet=16M #或者更高,當然也可以在mysqld啟動的時候加入這個參數,但是該變量必須在mysqld重新啟動的時候才加載生效,所以必須重起mysqld! 本人覺得前者是最佳解決方法。
解決后也可以重新啟動下mysql服務器。可以看到成功了。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
opencms安裝出現下面的問題:Your'max_allowed_p_MySQL
opencms安裝出現下面的問題:Your'max_allowed_p_MySQL:一、問題 在安裝opencms是會出現如下錯誤: MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB). Please note that it will not be possible for OpenCms to handle files big