check the manual that corresponds to your MySQL server version for the right syntax to use near

小白自己整理错误,个人管用。新手可稍微看下
check the manual that corresponds to your MySQL server version for the right syntax to use near

遇到某种情况,不得已重装了mysql之后,在程序中运行sql语句就报此错误,因为之前的程序是运行成功的,找了一些文章,说的云里雾里的,新手来说大概率是编码错误,
jdbc:mysql://localhost:3306/customer (在表名后面添加)
?useUnicode=true&characterEncoding=utf-8

还有一个错误,通常是一起的,
check the manual that corresponds to your MySQL server version for the right syntax to use near
结果就是数据库茶籽汉字变成问好??大概率是数据库乱码,遇到这种情况只要下面操作
在设计表中,修改字符集跟排序规则即可check the manual that corresponds to your MySQL server version for the right syntax to use near