我尝试在 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,但这是有缺陷的:Class.forName("com.mysql.jdbc.Driver");
我应该怎么办?