How do I specify the Database URL String in the DATABASE function of Database Toolbox 3.4(R2007b) to connect to a POSTGRESQL database?

I am trying to connect to POSTGRESQL database. I am not able to find the JDBC Driver and URL string to use them in DATABASE command to connect to my database. I would like some help on this issue.

 Accepted Answer

For a PostGreSQL database the driver and the URL specifications are as follows:
JDBC driver: org.postgresql.DriverDatabase
URL: jdbc:postgresql://masd/DatabaseName
Please note that the Database URL string needs to have the Database name "DatabaseName" appended at the end of it.

More Answers (0)

Products

Release

R2007b

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!