yona-projects / yona

Project Hosting SW
https://yona.io
Apache License 2.0
490 stars 154 forks source link

처음 설치시 관한 질문입니다. #779

Closed luxury515 closed 1 year ago

luxury515 commented 1 year ago

yona-1.16.0.zip 다운받고 bin/yona 실행 , 이후 conf / application.cnf 파일 mariadb url 정보수정.

이렇게 하고 실행하려고 하면 table / data 가 없기때문에 db 관련 에러가 납니다. 혹시 yana 라는 database 를 만들면 끝인가요 ?

dml , ddl 수행은 어디서 하는지 알고 싶습니다. 테이블,기초데이터가 없으니 당연 실행에러 나겠죠.

제가 어느부분을 빠뜨렸을까요?

####### Play server process ID is 65773 [error] c.j.b.h.AbstractConnectionHook - Failed to obtain initial connection Sleeping for 0ms and trying again. Attempts left: 0. Exception: org.mariadb.jdbc.internal.util.dao.QueryException: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Connection refused.Message:Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Connection refused Oops, cannot start the server. Configuration error: Configuration error[Cannot connect to database [default]] at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:94) at play.api.Configuration.reportError(Configuration.scala:743) at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:247) at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:238) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at play.api.db.BoneCPPlugin.onStart(DB.scala:238) at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91) at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91) at scala.collection.immutable.List.foreach(List.scala:318) at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91) at play.api.Play$$anonfun$start$1.apply(Play.scala:91) at play.api.Play$$anonfun$start$1.apply(Play.scala:91) at play.utils.Threads$.withContextClassLoader(Threads.scala:21) at play.api.Play$.start(Play.scala:90) at play.core.StaticApplication.(ApplicationProvider.scala:55) at play.core.server.NettyServer$.createServer(NettyServer.scala:253) at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:289) at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:284) at scala.Option.map(Option.scala:145) at play.core.server.NettyServer$.main(NettyServer.scala:284) at play.core.server.NettyServer.main(NettyServer.scala) Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Connection refused at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:132) at org.mariadb.jdbc.internal.util.ExceptionMapper.getException(ExceptionMapper.java:101) at org.mariadb.jdbc.internal.util.ExceptionMapper.throwException(ExceptionMapper.java:91) at org.mariadb.jdbc.Driver.connect(Driver.java:109) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:363) at com.jolbox.bonecp.BoneCP.(BoneCP.java:416) at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120) at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:240) ... 22 more #############