org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ''@' ' (using password: YES)
解决办法:
grant all PRIVILEGES on database.* to root@'192.168.5.115' identified by '123456';
database ---你要开放权限的数据库,
192.168.5.115 ---你允许访问的ip
123456 ----- 数据库密码
解决办法:
grant all PRIVILEGES on database.* to root@'192.168.5.115' identified by '123456';
database ---你要开放权限的数据库,
192.168.5.115 ---你允许访问的ip
123456 ----- 数据库密码