mysql5.7 opencms安装解决方案 .Your 'max_allowed_packet' variable is set to less than 16777216 Byte (16MB)
来源:互联网 发布:数据挖掘的是什么数据 编辑:程序博客网 时间:2024/04/29 18:29
opencms安装出现下面的问题:Your‘max_allowed_packet’ variable is set to lessthan 16777216 Byte (16MB).,maxallowedpacket。
一、问题
在安装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).
解决方案:
首先博主mysql5.7的配置文件名为:my-defailt.ini
我的解决方案是先将my-default.ini改名为my.ini
后将下段文本代替之前的my-defailt.ini文本:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[client]
default-character-set=utf8
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
basedir = C:\mysql-5.7.17-winx64"
datadir = "C:\mysql-5.7.17-winx64\data"
tmpdir = "C:\mysql-5.7.17-winx64\data"
socket = "C:\mysql-5.7.17-winx64\data\mysql.sock"
port = 3306
log-error = "C:\mysql-5.7.17-winx64\data\mysql_error.log"
# server_id = .....
max_connections = 100
table_open_cache = 256
query_cache_size = 1M
tmp_table_size = 32M
thread_cache_size = 8
innodb_data_home_dir = "C:\mysql-5.7.17-winx64\data\"
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 128M
innodb_buffer_pool_size = 128M
innodb_log_file_size = 10M
innodb_thread_concurrency = 16
innodb-autoextend-increment = 1000
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
join_buffer_size = 128M
sort_buffer_size = 32M
read_rnd_buffer_size = 32M
max_allowed_packet = 32M
explicit_defaults_for_timestamp = true
sql_mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
其中将路径都改为自己的mysql安装目录。
管理员权限运行cmd
输入net stop mysql
net start mysql
两个命令进行重启。
这样就可以解决MySQL system variable 'max_allowed_packet' is set to 1048576 Byte 问题了。
- mysql5.7 opencms安装解决方案 .Your 'max_allowed_packet' variable is set to less than 16777216 Byte (16MB)
- opencms 安装出现下面的问题:Your 'max_allowed_packet' variable is set to less than 16777216 Byte (16MB).
- MySQL system variable 'max_allowed_packet' is set to (1MB).
- 硬盘安装Linux:less than 4MB memory
- MySQL-- set-variable=max_allowed_packet
- Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "te
- {Less} is more, than Css
- # less(less is more, Than css)
- # less(less is more, Than# less(less is more, Than css)
- Why is using BufferedInputStream to read a file byte by byte faster than using FileInputStream
- minimumosversion set to less than 5.1.1 more information about 64-bit
- Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- Matlab Warning:Variable cannot be saved to a MAT-file whose version is older than 7.3
- Yii2之yii2-apidoc安装爆Your requirements could not be resolved to an installable set of packages.的解决方案
- matlab错误:Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- 【转】 matlab错误:Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- matlab错误:Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- leetcode第一题
- 【面试】JDBC连接数据库6步
- 关于qualcomm平台i2c和spi配置学习
- 车牌识别及验证码识别的一般思路
- Java并发编程举例Runnable, Callable, Future, FutureTask, CompletionService
- mysql5.7 opencms安装解决方案 .Your 'max_allowed_packet' variable is set to less than 16777216 Byte (16MB)
- C++经典入门笔记及练习答案
- repo的使用
- 商业智能移动BI应用 转型跟上时代趋势
- MIT_线性代数笔记_10_四个基本子空间
- VLAD和MultiVLAD
- hadoop从零开始--linux基础命令篇
- 封装 DOM事件 EventUtil对象 跨浏览器兼容
- 【题目】创建CUSTOMERS表,字段为:ID:(非空,主键)bigint,NAME:(非空)varchar,AGE:int类型;创建ORDERS表,字段为:ID:...