zoukankan      html  css  js  c++  java
  • 安装opencms时遇到问题及解决方法

    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;

  • 相关阅读:
    Hypercall机制
    python 基础-----数字,字符串,if while 循环 数据类型的转换简单介绍
    计算机基础知识
    Proxmox初步了解
    Centos7-安装py3
    KVM-virsh常用命令
    Centos7-VNC安装
    Centos7-bond模式介绍
    KVM管理工具
    Win10-无法启动虚拟机
  • 原文地址:https://www.cnblogs.com/davidwang456/p/3662942.html
Copyright © 2011-2022 走看看