摘要:
mysql查询时候报错: Lock wait timeout exceeded; try restarting transaction 译文:锁等待超时;试着重新启动事务 被锁了,需要解锁。 1.innodb_trx 当前运行的所有事务 select * from information_schem 阅读全文
摘要:
1.静态加载Driver static { try { Class.forName("com.mysql.cj.jdbc.Driver"); } catch (ClassNotFoundException e) { e.printStackTrace(); } } 2.创建连接 private st 阅读全文