【问题描述】
使用MyBatis对MySQL数据库中的数据表进行操作时出现“Error updating database.”报错。主要内容为:Error updating database. Cause: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
【问题详情】
### Error updating database. Cause: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
### The error may exist in com/mapper/UserMapper.xml
### The error may involve com.mapper.UserMapper.addUser
### The error occurred while executing an update
### Cause: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199)
at org.apache.ibatis.session.defaults.DefaultSqlSe