Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- close all; clear all; clc;
- input = '123';
- %/etc/postgresql/9.4/main/postgresql.conf
- % set listen_addresses to your outgoing interface or all
- % service postgresql restart
- %Non-SSL
- %JDBC driver: org.postgresql.Driver
- %Database URL: jdbc:postgresql://host:port/database
- % https://se.mathworks.com/help/database/ug/database.html
- conn = database('masi_data_instance', 'masi', 'password', ...
- 'org.postgresql.Driver', ... % = driver
- 'jdbc:postgresql://localhost:5432/masi_data', ... % = databaseurl
- 'Vendor', 'PostgreSQL', ...
- 'Server', 'localhost', ...
- 'PortNumber', 5432)
- close(conn);
- listen_addresses = 'localhost'
- port = 5432 # default
- conn =
- connection with properties:
- Instance: 'masi_data_instance'
- UserName: 'masi'
- Driver: 'org.postgresql.Driver'
- URL: 'jdbc:postgresql://localhost:5432/masi_data'
- Constructor: [1×1 com.mathworks.toolbox.database.databaseConnect]
- Message: 'Unable to find JDBC driver.'
- Handle: 0
- TimeOut: 0
- AutoCommit: []
- Type: 'Database Object'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement