[英]Java mysql connection is error
I tried connect mysql in java but there is compiler error. 我尝试在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
I added mysql libraray but this is defective : Class.forName("com.mysql.jdbc.Driver");
我添加了mysql libraray,但这是有缺陷的: Class.forName("com.mysql.jdbc.Driver");
What should I do? 我该怎么办?
MySQLSyntaxErrorException
意味着您已经连接到MySQL,但是您尝试执行的SQL脚本有一些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.