After installing Database toolbox, and configuring Data Source to an ODBC MySQL server using Database explorer app. I get a long set of error messages when I click on Connect.
Here is a short initial set of error messages that goes on for many lines:
Warning: Error occurred while executing the listener callback for event ConnectRequest defined for class
Error using figure
Cannot set DockControls to 'off' while WindowStyle is 'docked'.
Error in dbgui.internal.ConnectDialog (line 33)
this.Figure = figure('DockControls','off',...
Error in dbgui.internal.dbSession/attemptConnection (line 1171)
I did solve the problem by removing one line of code from my startup.m file:
set(0, 'DefaultFigureColormap', jet), close all
With the line of code commented out: set(0, 'DefaultFigureWindowStyle', 'docked')
The errors were resolved.
I posted this question (with a workaround answer) here because I saw no help related to this issue. Hopefully MATLAB team could find a better error message or an automated "undocking" event so a first time user of Database toolbox can have a better initial user experience. But at least this post can now serve to help unravel this mystery for new users as well.
Product: R2020a update 3