User`s guide

2 Getting Started with Database Toolbox
2-142
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 MySQL database using
Database Explorer or the command line with the JDBC connection.
Step 4. Connect using Database Explorer or the command line.
Connect to MySQL using Database Explorer.
1
After setting up the data source, connect to your database by selecting the data
source name for the MySQL database from the Data Sources list. Enter a user
name and password. Click Connect.
Database Explorer connects to your database and displays its contents in a tab
named with the data source name.