Cant connect to my SQL database

前端 未结 9 632
庸人自扰
庸人自扰 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:02

    There is a difference between name of connection and name of Database,try world, test or sakila from schemas in the picture.

提交回复
热议问题