<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Too many connections error with mysql]]></title><description><![CDATA[<p dir="auto">I'm running FusionAuth with mysql 8.0.23.</p>
<p dir="auto">When starting up FusionAuth, I get this error message in the logs, and it doesn't start correctly:</p>
<pre><code>2021-05-06 7:02:20.664 AM INFO  com.inversoft.jdbc.hikari.DataSourceProvider - Connecting to MySQL database at [jdbc:mysql://localhost:3306/fusionauth?serverTimezone=UTC&amp;useSSL=false&amp;allowPublicKeyRetrieval=true]
2021-05-06 7:02:20.665 AM WARN  com.zaxxer.hikari.HikariConfig - HikariPool-1 - idleTimeout has been set but has no effect because the pool is operating as a fixed size pool.
2021-05-06 7:02:20.667 AM INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2021-05-06 7:02:20.796 AM ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
java.sql.SQLNonTransientConnectionException: Too many connections
        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836)
        at com.mysql.cj.jdbc.ConnectionImpl.&lt;init&gt;(ConnectionImpl.java:456)
        at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
        at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:199)
        at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:353)
</code></pre>
<p dir="auto">mysql is running. When I log in and look at the active connections, I see this:</p>
<pre><code>mysql&gt; show status where variable_name = 'threads_connected';
+-------------------+-------+
| Variable_name     | Value |
+-------------------+-------+
| Threads_connected | 152   |
+-------------------+-------+
</code></pre>
<p dir="auto">Any ideas?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/997/too-many-connections-error-with-mysql</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 07:51:31 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/997.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 May 2021 13:11:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Too many connections error with mysql on Thu, 06 May 2021 13:18:49 GMT]]></title><description><![CDATA[<p dir="auto">And now it works fine with 152 threads connected, so unable to reproduce this.</p>
<p dir="auto">I'll keep an eye out for this behavior and file an issue if it pops up again.</p>
<p dir="auto">For the record:</p>
<p dir="auto">FusionAuth 1.27<br />
installed via zip file<br />
Mysql 8.0.23 installed/managed via homebrew on the mac.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2957</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2957</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 06 May 2021 13:18:49 GMT</pubDate></item><item><title><![CDATA[Reply to Too many connections error with mysql on Thu, 06 May 2021 13:13:40 GMT]]></title><description><![CDATA[<p dir="auto">I ended up restarting mysql which killed all those hanging connections.</p>
<p dir="auto">I'm not sure why FusionAuth isn't releasing connections when it shuts down, but a restart resolved my issue.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2956</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2956</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 06 May 2021 13:13:40 GMT</pubDate></item></channel></rss>