- 1 LuckyFrame使用手册
- 2 环境搭建
- 2.1 环境准备
- 2.2 数据库安装配置
- 2.3 基础数据初始化(升级)
- 2.4 Gitee&Github使用说明
- 2.5 导入项目
- 2.6 项目配置
- 2.7 项目部署
- 3 使用说明
- 3.1 系统介绍
- 3.2 语法手册
- 3.2.1 测试驱动(接口)自动化语法说明
- 3.2.2 Web UI自动化语法说明
- 3.2.3 移动端自动化语法说明
- 3.2.4 HTTP&Socket模板自动化语法说明
- 3.2.5 步骤动作关键字
- 4 示例手册
- 4.1 API接口自动化示例
- 4.2 APP自动化示例
- 5 常见问题&解决办法
- 5.1 服务端Web常见问题
- 5.2 客户端常见问题
基础数据初始化(升级)
- 2018-03-13 20:18:51
- admin
- 50000
- 最后编辑:Seagull 于 2020-02-11 10:46:06
注意:V3.2以上的版本已经使用FlyWay自动初始化以及升级数据库,无需手动执行以下步骤,所以此章节可以忽略。
在服务端项目 LuckyFrameWeb的根目录下,有一个 mysqldb的文件夹,此文件夹中包含了2个子文件夹:
文件夹 initialization(create table) :此目录是项目数据初始化的路径,如果你是第一次安装环境,那么可以进入到此路径下,此文件夹中包含了各种版本的初始化SQL文件,找到自己下载项目所属版本的SQL文件,去执行SQL即可。
文件夹 update(alter table) :此目录是项目升级需要的SQL路径,如果你现在想把旧版本升级到最新版本,找到对应的更新SQL文件,执行即可。
注意: 不可跨级更新,比如你现在是2.4版本,想升级到2.6版本,那么你必须先执行【 V2.4 upgrade V2.5】中的文件,升级到V2.5版本的数据结构,再执行【 V2.5 upgrade V2.6】中的文件,升级到V2.6。
从V2.X升级到V3.X由于是属于重构级别,所以不能直接升级,需要先执行V3.X版本的初始化SQL文件,再执行V2.7.2升级到V3.0的升级SQL文件,对数据进行迁移,具体操作可参照升级文章,后续会提供。
13:40:55.617 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,554] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'luckyFrameWebApplication': Unsatisfied dependency expressed through field 'server'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nettyServer': Unsatisfied dependency expressed through field 'serverChannelInitializer'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serverChannelInitializer': Unsatisfied dependency expressed through field 'serverHandler'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ServerHandler': Unsatisfied dependency expressed through field 'clientService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientServiceImpl': Unsatisfied dependency expressed through field 'jobService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayConfig': Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
Unable to check whether schema `luckyframe` is empty
----------------------------------------------------
SQL State : HY000
Error Code : 1577
Message : Cannot proceed, because event scheduler is disabled
13:40:55.632 [main] INFO c.a.d.p.DruidDataSource - [close,1825] - {dataSource-1} closed
13:40:55.639 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
13:40:55.664 [main] ERROR o.s.b.SpringApplication - [reportFailure,858] - Application run failed
ERROR: Failed to open file '/home/luckyframefiles/v3.2.sql', error: 2
执行sql 提示不能打开啊,求救!!!
你好 执行3.1.1版本,初始化数据的时候报这个错误,请问是什么原因?[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
ERROR 1406 (22001): Data too long for column 'dict_label' at row 1
ERROR 1406 (22001): Data too long for column 'dict_label' at row 1
ERROR 1406 (22001): Data too long for column 'dict_label' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x80\x81Post...' for column 'dict_label' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x80\x81Get\xE8...' for column 'dict_label' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x80\x81JSON...' for column 'dict_label' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x80\x81Put\xE8...' for column 'dict_label' at row 1
ERROR 1366 (HY000): Incorrect string value: '\x80\x81JSON...' for column 'dict_label' at row 1