<?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[External MySQL]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I just quickly wanted to ask how I'd get access to my Lamp Stack's DB from outside (minecraft server).</p>
<p dir="auto">I've opened the 3306 port in ufw and I edited the my.cnf.</p>
<p dir="auto">Still can't reach it. What do I have to do?</p>
]]></description><link>https://forum.cloudron.io/topic/2200/external-mysql</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 17:06:38 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2200.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Mar 2020 18:00:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to External MySQL on Sat, 21 Oct 2023 14:01:15 GMT]]></title><description><![CDATA[<p dir="auto">By now the internal IP for mysql is hardcoded to 172.18.30.1 so this command is not required anymore: <a href="https://docs.cloudron.io/guides/connect-mysql/#internal-ip-address" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/connect-mysql/#internal-ip-address</a></p>
]]></description><link>https://forum.cloudron.io/post/75701</link><guid isPermaLink="true">https://forum.cloudron.io/post/75701</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 21 Oct 2023 14:01:15 GMT</pubDate></item><item><title><![CDATA[Reply to External MySQL on Sat, 21 Oct 2023 12:15:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/6317">External MySQL</a>:</p>
<blockquote>
<p dir="auto">docker inspect mysql | grep IPAddress</p>
</blockquote>
<p dir="auto">Where / how?</p>
]]></description><link>https://forum.cloudron.io/post/75698</link><guid isPermaLink="true">https://forum.cloudron.io/post/75698</guid><dc:creator><![CDATA[eddowding]]></dc:creator><pubDate>Sat, 21 Oct 2023 12:15:05 GMT</pubDate></item><item><title><![CDATA[Reply to External MySQL on Tue, 03 Mar 2020 17:47:08 GMT]]></title><description><![CDATA[<p dir="auto">There is no easy way to make the internal mysql server public without changing the code and I don't know what that will break.</p>
<p dir="auto">I think you can setup a ssh tunnel between your minecraft server and the Cloudron.</p>
<p dir="auto">Something like <a href="https://www.linode.com/docs/databases/mysql/create-an-ssh-tunnel-for-mysql-remote-access/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.linode.com/docs/databases/mysql/create-an-ssh-tunnel-for-mysql-remote-access/</a></p>
<p dir="auto">Do this on Cloudron:</p>
<pre><code>docker inspect mysql | grep IPAddress
                    "IPAddress": "172.18.0.4",
</code></pre>
<p dir="auto">So, <code>172.18.0.4</code> is the IP of mysql server. Then, you can get the db credentials using the web terminal of the LAMP app:</p>
<pre><code>    env | grep CLOUDRON_MYSQL_
</code></pre>
<p dir="auto">You can then connect using the above credentials as:</p>
<pre><code>mysql --host=172.18.0.4 --user=&lt;username&gt; --password=&lt;password&gt; &lt;db&gt;
</code></pre>
<p dir="auto">After the above works, you just setup SSH tunnel accordingly.</p>
]]></description><link>https://forum.cloudron.io/post/6317</link><guid isPermaLink="true">https://forum.cloudron.io/post/6317</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 03 Mar 2020 17:47:08 GMT</pubDate></item><item><title><![CDATA[Reply to External MySQL on Tue, 03 Mar 2020 13:44:08 GMT]]></title><description><![CDATA[<p dir="auto">Am I able to open this container to the outside?</p>
<p dir="auto">I don't really mind about security too much here.</p>
]]></description><link>https://forum.cloudron.io/post/6308</link><guid isPermaLink="true">https://forum.cloudron.io/post/6308</guid><dc:creator><![CDATA[Trankery]]></dc:creator><pubDate>Tue, 03 Mar 2020 13:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to External MySQL on Tue, 03 Mar 2020 13:43:30 GMT]]></title><description><![CDATA[<p dir="auto">As I said, a minecraft server needs to access it.</p>
]]></description><link>https://forum.cloudron.io/post/6307</link><guid isPermaLink="true">https://forum.cloudron.io/post/6307</guid><dc:creator><![CDATA[Trankery]]></dc:creator><pubDate>Tue, 03 Mar 2020 13:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to External MySQL on Mon, 02 Mar 2020 17:20:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trankery" aria-label="Profile: Trankery">@<bdi>Trankery</bdi></a> The mysql that is allocated to apps is run as a separate container (named <code>mysql</code>) and is not accessible from the outside directly. Instead, what you can do is to use the CLI tool to access it - <a href="https://cloudron.io/documentation/custom-apps/addons/#mysql" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/custom-apps/addons/#mysql</a></p>
<p dir="auto">May I ask why you want to access it from outside? I can probably give a better solution depending on the use case. But if you want to access from your laptop/PC:</p>
<ol>
<li>
<p dir="auto">Install the CLI tool - <a href="https://cloudron.io/documentation/custom-apps/cli/" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/custom-apps/cli/</a></p>
</li>
<li>
<p dir="auto"><code>cloudron exec</code></p>
<pre><code># mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE}

mysql&gt; this is the mysql shell
</code></pre>
</li>
</ol>
]]></description><link>https://forum.cloudron.io/post/6293</link><guid isPermaLink="true">https://forum.cloudron.io/post/6293</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 02 Mar 2020 17:20:13 GMT</pubDate></item></channel></rss>