报500 Internal Server Error
错控制台报错
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION mmall_learning.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
### The error may exist in file [E:\tts9\JAVA_TOOLS\tts9\apache-tomcat-7.0.67\webapps\ROOT\WEB-INF\classes\mappers\UserMapper.xml]
### The error may involve com.mmall.dao.UserMapper.checkAnswer-Inline
### The error occurred while setting parameters
### SQL: SELECT COUNT (1) from mmall_user WHERE username = ? and question = ? and answer = ?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION mmall_learning.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION mmall_learning.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual] with root cause
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION mmall_learning.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)