我发现: 需要使用Class.forName("org.postgresql.Driver"); 在程序的类路径中需要PostgreSQL驱动程序的JAR文件。[info] play - database [default] connected at jdbc:postgresql://localhost:5432/postgrespostgres://user:password@localh
我使用Heroku作为我的应用程序,它需要PostgreSQL,但是仍然可以使用SQLite 3进行开发。由于Heroku强烈建议不要使用两个不同的数据库,所以我决定改为PostgreSQL进行开发。我安装了gem pg还访问了官方PostgreSQL站点以获得Windows安装程序,并更改了我的database.yml...。在安装过程中,它需要PostgreSQL的密码,所以我创建了一个密码。db:createFATAL: role "User" does no