Hola, me sale este error cuando quiero ejecutar el código.
Exception in thread "main" java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: Unknown database 'control_de_stock'
at com.alura.jdbc.view.ControlDeStockFrame.cargarTabla(ControlDeStockFrame.java:215)
at com.alura.jdbc.view.ControlDeStockFrame.configurarTablaDeContenido(ControlDeStockFrame.java:59)
at com.alura.jdbc.view.ControlDeStockFrame.<init>(ControlDeStockFrame.java:46)
at com.alura.jdbc.ControlDeStockMain.main(ControlDeStockMain.java:10)
Caused by: java.sql.SQLSyntaxErrorException: Unknown database 'control_de_stock'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:229)
at com.alura.jdbc.controller.ProductoController.listar(ProductoController.java:21)
at com.alura.jdbc.view.ControlDeStockFrame.cargarTabla(ControlDeStockFrame.java:213)
... 3 more