unknown database in jdbc

前端 未结 7 1730
有刺的猬
有刺的猬 2021-01-26 00:59

I am using JDBC and new to it. but I keep getting this runtime exception:

   connecting to psysical database...
   com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErr         


        
7条回答
  •  不要未来只要你来
    2021-01-26 01:34

    I had the same issue and found that the cause of it was: The name of the database here is CASE SENSITIVE! So, I was trying to connect using a database name like "test2", but the database name actually was "Test2".

提交回复
热议问题