2015-03-27 16:27:54,054--[Timer-1hread]--WARN --com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:608) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@43487e -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2015-03-27 16:27:54,054--[Timer-1hread]--WARN --com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:624) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@43487e -- APPARENT DEADLOCK!!! Complete Status:
可能是数据库不能被原创访问,只能是localhost访问。
2015-03-27 16:27:54,054--[Timer-1hread]--WARN --com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:624) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@43487e -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
可能是数据库不能被原创访问,只能是localhost访问。
- use mysql ;
-
- select user,host,password from user;
-
- update user set host = '%' where user='root';
- use mysql ;
- select user,host,password from user;
- update user set host = '%' where user='root';
---what’s mean??
数据库连接的是本机地址,,把本机ip改为localhost 就ok啦