User`s guide
PostgreSQL JDBC for Mac OS X
2-149
6
Enter a data source name in the Data Source Name field in the Create a New
JDBC data source dialog box. Use a new data source name that does not appear
in the existing list of data source names. Click Save. The new JDBC data source
appears in the list of data sources in the Connect to a Data Source dialog box.
7
If this time is the first time that you are creating a data source using Database
Explorer, the New file to store JDBC connection parameters dialog box opens.
Use this dialog box to create a MAT-file that saves your specified data source
information for future Database Explorer sessions. This MAT-file name is stored in
setdbprefs('JDBCDataSourceFile') and is valid for all MATLAB sessions.
Navigate to the folder where you want to put the MAT-file, specify a name for it that
includes a .mat extension, and click Save.
After you complete the data source setup, connect to the PostgreSQL database using
Database Explorer or the command line with the JDBC connection.
Step 4. Connect using Database Explorer or the command line.
Connect to PostgreSQL using Database Explorer.
1
After setting up the data source, connect to your database by selecting the data
source name for the PostgreSQL database from the Data Sources list. Enter a user
name and password. Click Connect.