安装opencms时遇到问题及解决方法
2014-04-13 22:41
666 查看
1. MySQL system variable 'max_allowed_packet'
http://blog.csdn.net/hqa_ii/article/details/6872367
安装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).
解决方法:
找到mysql的安装路径,找到my.ini文件,打开后在末尾行添加 max_allowed_packet=16M ,然后重启mysql服务即可。
2. ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
http://hi.baidu.com/ideas/item/711f154525324203e935047e
MySQL 5,Field 'id' doesn't have a default value
或者建立新用户时出现ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value 解决办法:
打开my.ini,查找
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
修改为
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
然后重启MYSQL
3. 安装向导
use mysql;
insert into user(Host,User,Password) values('localhost', 'opencmsuser', password('admin'));
insert into db values ('localhost', 'opencms', 'opencmsuser','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
flush privileges;
http://blog.csdn.net/hqa_ii/article/details/6872367
安装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).
解决方法:
找到mysql的安装路径,找到my.ini文件,打开后在末尾行添加 max_allowed_packet=16M ,然后重启mysql服务即可。
2. ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
http://hi.baidu.com/ideas/item/711f154525324203e935047e
MySQL 5,Field 'id' doesn't have a default value
或者建立新用户时出现ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value 解决办法:
打开my.ini,查找
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
修改为
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
然后重启MYSQL
3. 安装向导
use mysql;
insert into user(Host,User,Password) values('localhost', 'opencmsuser', password('admin'));
insert into db values ('localhost', 'opencms', 'opencmsuser','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
flush privileges;
相关文章推荐
- tomcat类加载器
- MEF核心笔记(6)让 MEF 拥抱 AOP
- Hadoop常用命令
- 《Hadoop管理一》checkpoint原理和过程
- Linux安装Tomcat7
- ECSHOP忘记后台密码怎么办?
- VS2008下的配置opencv
- Nginx配置文件详细说明
- Linux上vi(vim)编辑器使用教程
- FreeType on OpenGL ES (iPhone)
- linux修改主机名
- Shell中变量的基本用法
- 配置nginx对php的支持
- Tomcat 无法访问中文文件名的图片
- Shell脚本学习
- perl在linux下通过date获取当前时间
- 编译安装apache
- Linux的dd命令
- shell创建新文件夹
- opencv2 椒盐噪点salt