所以我正在尝试在我的服务器上部署我的游戏框架 2.3.5。我已经将它与MySQL数据库(最新版本)连接起来,并使用EBean进行持久性。
我的 1.sql 脚本如下所示:
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table input (
id varchar(255) not null auto_increment,
text TEXT not null,
mode varchar(255) not null,
theme varchar(255) not null,
title varchar(255) not null,
PRIMARY KEY (id)
)
;
# --- !Downs
drop table input;
由于我发布此错误消息的原因:
[info] play - database [default] connected at jdbc:mysql://localhost/pastedemo
[error] play - You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'sequence input_seq' at line 1 [ERROR:1064, SQLSTATE:42000]
Oops, cannot start the server.
@6kaijj99g: Database 'default' is in an inconsistent state!
有人能告诉我我的错在哪里吗?:)
好的,
我解决了这个问题。这很容易。
如果要在生产模式下使用应用程序,则必须删除 1.sql。然后使用 activator dist
打包应用程序并将其上传到服务器上。不要再用run
测试它。 之后,您可以部署它并且它可以工作。