将项目部署到博客上出现错误,连接数据库失败,注意在本地运行和在服务器上数据库密码
nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES)\n### The error may exist in class path resource [mapper/UserMapper.xml]\n### The error may involve com.example.demo.mapper.UserMapper.getUserByName\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES)”,