Advertisement
Guest User

Untitled

a guest
Oct 17th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. close all; clear all; clc;
  2.  
  3. input = '123';
  4.  
  5. %/etc/postgresql/9.4/main/postgresql.conf
  6. % set listen_addresses to your outgoing interface or all
  7. % service postgresql restart
  8.  
  9. %Non-SSL
  10. %JDBC driver: org.postgresql.Driver
  11. %Database URL: jdbc:postgresql://host:port/database
  12.  
  13. % https://se.mathworks.com/help/database/ug/database.html
  14. conn = database('masi_data_instance', 'masi', 'password', ...
  15. 'org.postgresql.Driver', ... % = driver
  16. 'jdbc:postgresql://localhost:5432/masi_data', ... % = databaseurl
  17. 'Vendor', 'PostgreSQL', ...
  18. 'Server', 'localhost', ...
  19. 'PortNumber', 5432)
  20. close(conn);
  21.  
  22. listen_addresses = 'localhost'
  23. port = 5432 # default
  24.  
  25. conn =
  26.  
  27. connection with properties:
  28.  
  29. Instance: 'masi_data_instance'
  30. UserName: 'masi'
  31. Driver: 'org.postgresql.Driver'
  32. URL: 'jdbc:postgresql://localhost:5432/masi_data'
  33. Constructor: [1×1 com.mathworks.toolbox.database.databaseConnect]
  34. Message: 'Unable to find JDBC driver.'
  35. Handle: 0
  36. TimeOut: 0
  37. AutoCommit: []
  38. Type: 'Database Object'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement