Cant connect to my SQL database

前端 未结 9 559
庸人自扰
庸人自扰 2021-01-04 18:24

So I\'m having an issue connecting to MySQL with Java. Heres my code:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException         


        
9条回答
  •  鱼传尺愫
    2021-01-04 19:12

    Charaf jra was right i had the same issue.
    your schema(schema = Database) is listed as Host = "jdbc:mysql://localhost/worlddb"; If you look at the schemas in the pic you posted https://postimg.cc/image/593stjvjx/
    the schema(Database) is world.

提交回复
热议问题