This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Performance test reports there is a NetBeans startup regression which is caused by the loading of the following classes: com.mysql.jdbc.ConnectionImpl com.mysql.jdbc.MysqlIO com.mysql.jdbc.NonRegisteringDriver com.mysql.jdbc.SQLError Please don't load these classes during NetBeans startup. Comment from jtulach: "No MySQL unless someone opens Services tab and expands database node."
Created attachment 66690 [details] Stacktraces
I recently checked in a change where we no longer try to connect to MySQL at module load. We still do check the local filesystem for installations of MySQL at module load, and if the rule is "no MySQL unless someone expands the databases node" then this should get moved.
Just a note: if you make the MySQL detection lazy please make sure to try to limit the impact on the duration of the initialization of the Databases node. You don't want to make the Database node slower even for those users that don't have a local MySQL, or don't care about the automatic detection because they don't use the start/stop features.
Fixed with changeset 5b0ec4174945 I typed in the wrong issue id in the commit comment, so I will mark this issue as fixed once it is pushed to main.
Previous change set checked for installations every time. Should only check if MySQL is not currently registered and has not previously been *unregistered*.
756e8ac9159a This change set makes sure we don't search for installations if MySQL has already been registered (or registered and subsequently removed manually by the user) Marking fixed.
Fixed
*** Issue 136745 has been marked as a duplicate of this issue. ***
New violator registered on 080811: org.netbeans.modules.db.mysql.installations.BundledInstallation Classes from issue 136745: org.netbeans.modules.db.mysql.DatabaseServer org.netbeans.modules.db.mysql.DatabaseServerManager org.netbeans.modules.db.mysql.DatabaseUser org.netbeans.modules.db.mysql.impl.ConnectionProcessor org.netbeans.modules.db.mysql.impl.DbExplorerConnectionListener org.netbeans.modules.db.mysql.impl.Installation org.netbeans.modules.db.mysql.impl.Installation$Command org.netbeans.modules.db.mysql.impl.InstallationManager org.netbeans.modules.db.mysql.impl.ModuleInstaller org.netbeans.modules.db.mysql.impl.ModuleInstaller$RegisterMySQL org.netbeans.modules.db.mysql.impl.MySQLDatabaseServer org.netbeans.modules.db.mysql.impl.MySQLDatabaseServer$DatabaseCommand org.netbeans.modules.db.mysql.impl.MySQLOptions org.netbeans.modules.db.mysql.impl.ServerNodeProvider org.netbeans.modules.db.mysql.installations.LinuxStandaloneInstallation org.netbeans.modules.db.mysql.installations.LinuxXAMPPInstallation org.netbeans.modules.db.mysql.installations.MAMPInstallation org.netbeans.modules.db.mysql.installations.SXDEWebStackInstallation org.netbeans.modules.db.mysql.installations.WindowsStandalone50Installation org.netbeans.modules.db.mysql.installations.WindowsStandalone51Installation org.netbeans.modules.db.mysql.nodes.DatabaseNode org.netbeans.modules.db.mysql.nodes.ServerNode org.netbeans.modules.db.mysql.nodes.ServerNode$ChildFactory org.netbeans.modules.db.mysql.nodes.ServerNode$InstanceComparator org.netbeans.modules.db.mysql.util.DatabaseUtils org.netbeans.modules.db.mysql.util.DatabaseUtils$ConnectStatus org.netbeans.modules.db.mysql.util.DriverClassLoader org.netbeans.modules.db.mysql.util.Utils
Verified with 080819 Dev build