解决Cannot create PoolableConnectionFactory (Access denied for user 'xxx'@'xxx.xxx.xx.xxx' (using pas
2016-07-31 18:25
337 查看
刚装的数据库,利用JDBC只能用localhost:3306来链接数据库,用IP地址的话会出现下图错误:
这是由于数据库没有对其他主机访问授权。解决方式:执行SQL语句,打开权限,也可以给指定ip授权(可以自行百度)。
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
注意:
myuser:你要公开的数据库的库的名字。
password:你要公开数据库,访问时用到的密码。
这是由于数据库没有对其他主机访问授权。解决方式:执行SQL语句,打开权限,也可以给指定ip授权(可以自行百度)。
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
注意:
myuser:你要公开的数据库的库的名字。
password:你要公开数据库,访问时用到的密码。
相关文章推荐
- Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password:
- Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password:
- 关于mysql遇到Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using p
- SSM整合问题:Cannot create PoolableConnectionFactory (Access denied for user 'Administrator'@'localhost'
- spring整合ibatis出错,Cannot create PoolableConnectionFactory (Access denied for user 'root '@'localhost'
- Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password:
- Spring整合MyBatis:Cannot create PoolableConnectionFactory (Access denied for user 'root '@'localhost
- Cannot create PoolableConnectionFactory Access denied for user 'root'@'localhost'
- mysql压缩包如何使用及PoolableConnectionFactory 和Access denied for user 'testdb'@'localhost'问题的解决
- org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied 错误解决
- Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied
- 严重: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied
- SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.)
- 使用Oracle连接池错误 Cannot create PoolableConnectionFactory(Io 异常: The Network Adapter could not establish the connection )的解决方法
- java.sql.SQLException: Cannot create PoolableConnectionFactory (Network error IOException: 解决方法
- Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception 解决
- Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.)错误
- Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver for JDBC]Error establishi
- Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception 解决
- 【问题解决】 org.apache.commons.dbcp.SQLNestedException Cannot create PoolableConnectionFactory