Java mysql连接错误
我尝试用java连接mysql,但出现了编译器错误Java mysql连接错误,java,netbeans-7,mysql-error-1064,mysql-connect,Java,Netbeans 7,Mysql Error 1064,Mysql Connect,我尝试用java连接mysql,但出现了编译器错误 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 我添加了mysql libraray,但这是有缺陷的:Cla
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
我添加了mysql libraray,但这是有缺陷的:Class.forName(“com.mysql.jdbc.Driver”)代码>
我该怎么办?MySQLSyntaxErrorException
表示您已经连接到MySQL,但您试图执行的SQL脚本存在一些问题。您应该在问题中包含SQL代码。您的SQL查询可能是错误的。您确定,在我看来是例外而不是编译错误吗