报错: Data source rejected establishment of connection

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/JusterDu/article/details/50893607
报错:Data source rejected establishment of connection,  message from server: "Too many connections"

原因分析及解决方法:
    进分析程序,创建了过多的数据库连接,而没有关闭数据库。加上以下两句即可解决问题:
    stmt.close();
    coon.close();

猜你喜欢

转载自blog.csdn.net/JusterDu/article/details/50893607