Guest User

Untitled

a guest
Jan 13th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. это то что твой выдает
  2.  
  3. The server doesn't grant access to the database: the server reports
  4. FATAL: no pg_hba.conf entry for host "192.168.61.36", user "tester", database "test", SSL off
  5. To access a database on a PostgreSQL server, you first have to grant primary access to the server for your client (Host Based Authentication). PostgreSQL will check the pg_hba.conf file if a pattern that matches your client address / username / database is present and enabled before any SQL GRANT access control lists are evaluated.
  6. The initial settings in pg_hba.conf are quite restrictive, in order to avoid unwanted security holes caused by unreviewed but mandatory system settings. You'll probably want to add something like
  7. host all all 192.168.0.0/24 md5
  8. This example grants MD5 encrypted password access to all databases to all users on the private network 192.168.0.0/24.
  9.  
  10. мой коннектится но база без структуры вылетает на
  11. Exception in thread "main" java.lang.NullPointerException
  12. at ru.kih.sin.model.create.Mapping.<init>(Mapping.java:36)
  13. at ru.kih.sin.model.impl.AbstractObjectFunction.<init>(AbstractObjectFunction.java:28)
  14. at ru.kih.sin.model.impl.SelectObjectFunction.<init>(SelectObjectFunction.java:32)
  15. at ru.kih.sin.model.impl.ModelImpl.loadEntity(ModelImpl.java:73)
  16. at ru.kih.sin.napi.impl.CoreImpl.getObjectClass(CoreImpl.java:61)
  17. at ru.kih.sin.napi.impl.CoreImpl.getChilds(CoreImpl.java:47)
  18. at ru.kih.sin.dev.Main$SelectNodes.call(Main.java:116)
  19. at ru.kih.sin.dev.Main$SelectNodes.call(Main.java:110)
  20. at ru.kih.sql.query.QueryContext.run(QueryContext.java:201)
  21. at ru.kih.sin.dev.Main.main(Main.java:134)
Add Comment
Please, Sign In to add comment