mysql - How to create a database later with a scala play-framework applicaton? -


i have application written in scala play-framework. have credentials in application config. when user runs application, appliction create database user. current configuration given below.

db.rds.driver=com.mysql.jdbc.driver db.rds.host="localhost" db.rds.port="3306" db.rds.user = "root" db.rds.password = "root" 

as can see there no db.rds.url or db.rds.dbname. because haven't created database yet. later create new database user users input.

currently getting error when run application. error says missing configuration [db.rds.url]

is possible? if how? hope have made myself clear. if find confusing please ask. in advance.

according play framework documentation, when using mysql engine, should provide url configuration in contrast host , port informing.

if intent connect root mysql without accessing specified database, try supply following:

db.rds.driver=com.mysql.jdbc.driver db.rds.url = "jdbc:mysql://localhost:3306/" db.rds.user = "root" db.rds.password = "root" 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -