<?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[Postgres root login info?]]></title><description><![CDATA[<p dir="auto">How can I get the Postgres root password for the postgres container?</p>
<p dir="auto">I've done it with mysql and tried with postgres, but it keeps saying incorrect password at the psql command line.</p>
<p dir="auto">I've done a "docker inspect postgres | grep IPAddress", obtained the IP, and tried to use psql with --user and --host (password pasted in), but it doesn't accept the password. I've connected remotely from through the postgres terminal as well as through the cloudron server, but still no luck.</p>
<p dir="auto">This is similar to the steps I've taken as well, found through this link: <a href="https://forum.cloudron.io/topic/2200/external-mysql/5">https://forum.cloudron.io/topic/2200/external-mysql/5</a></p>
<p dir="auto">I installed a Directus RC custom container and didn't realize it was using PG as the DB driver. So, I need to dump the PG tables, convert it to use mysql, and reload the schema into mysql. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Thanks!</p>
<p dir="auto">-gregg</p>
]]></description><link>https://forum.cloudron.io/topic/5301/postgres-root-login-info</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 11:49:27 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5301.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Jul 2021 22:46:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Postgres root login info? on Tue, 06 Jul 2021 23:09:59 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> I use DBeaver with an SSH tunnel. I just found an option that I forgot to toggle on -- "Show all databases".</p>
<p dir="auto">Now it shows all the databases!</p>
<p dir="auto">On a side note, I did first try to configure an SSH tunnel and a post-command to execute "/usr/local/bin/docker exec -ti postgresql bash" and that worked as well.</p>
<p dir="auto">But, only one tunnel is needed to the cloudron server to login as root that allows access to all databases.</p>
<p dir="auto">I'm good to go. Thanks for the help!</p>
]]></description><link>https://forum.cloudron.io/post/33494</link><guid isPermaLink="true">https://forum.cloudron.io/post/33494</guid><dc:creator><![CDATA[ChicagoGregg]]></dc:creator><pubDate>Tue, 06 Jul 2021 23:09:59 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres root login info? on Tue, 06 Jul 2021 21:20:29 GMT]]></title><description><![CDATA[<p dir="auto">You don't need the root password if you access via <code>localhost</code> since we configured postgres that way.</p>
<pre><code class="language-docker">root@postgresql:/# psql -Uroot  --dbname=postgres
psql (12.7 (Ubuntu 12.7-1.pgdg20.04+1))
Type "help" for help.

postgres=# \list
                                                                                   List of databases
                Name                |                Owner                 | Encoding | Collate | Ctype |                               Access privileges                               
------------------------------------+--------------------------------------+----------+---------+-------+-------------------------------------------------------------------------------
 db3ef70900294e425783b45e1555c27dd4 | user3ef70900294e425783b45e1555c27dd4 | UTF8     | C       | C     | user3ef70900294e425783b45e1555c27dd4=CTc/user3ef70900294e425783b45e1555c27dd4
 postgres                           | postgres                             | UTF8     | C       | C     | 
 template0                          | postgres                             | UTF8     | C       | C     | =c/postgres                                                                  +
                                    |                                      |          |         |       | postgres=CTc/postgres
 template1                          | postgres                             | UTF8     | C       | C     | =c/postgres                                                                  +
                                    |                                      |          |         |       | postgres=CTc/postgres
(4 rows)

</code></pre>
<p dir="auto">Above you can see that <code>db3ef70900294e425783b45e1555c27dd4</code> is a database. In postgres, there is no "use" like mysql afaik. So you have to reconnect like this:</p>
<pre><code>root@postgresql:/# psql -Uroot  --dbname=db3ef70900294e425783b45e1555c27dd4
psql (12.7 (Ubuntu 12.7-1.pgdg20.04+1))
Type "help" for help.

db3ef70900294e425783b45e1555c27dd4=# \dt
&lt;the tables&gt;
</code></pre>
]]></description><link>https://forum.cloudron.io/post/33480</link><guid isPermaLink="true">https://forum.cloudron.io/post/33480</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 06 Jul 2021 21:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres root login info? on Tue, 06 Jul 2021 19:40:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I wasn't specifying any dbname. I'm not totally used to postgres and thought it would just connect into the db instance and I can list databases, etc. from there. Also looks like I can't use a root account to access all databases. It's alright as long as I can get into the schema for directus and transfer things over to MySQL. I'll have to take a primer on postgres.</p>
<p dir="auto">Thanks for the help!</p>
]]></description><link>https://forum.cloudron.io/post/33470</link><guid isPermaLink="true">https://forum.cloudron.io/post/33470</guid><dc:creator><![CDATA[ChicagoGregg]]></dc:creator><pubDate>Tue, 06 Jul 2021 19:40:25 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres root login info? on Tue, 06 Jul 2021 13:27:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chicagogregg" aria-label="Profile: chicagogregg">@<bdi>chicagogregg</bdi></a> you should also be able to connect within the container using this over SSH:</p>
<pre><code>docker exec -ti postgresql psql --dbname=postgres
</code></pre>
]]></description><link>https://forum.cloudron.io/post/33450</link><guid isPermaLink="true">https://forum.cloudron.io/post/33450</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 06 Jul 2021 13:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres root login info? on Mon, 05 Jul 2021 21:01:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Thanks.</p>
<p dir="auto">That's what I thought, too. But I get the following:</p>
<pre><code>user@vt1cloud01:~$ docker exec -ti postgresql bash
root@postgresql:/# env|grep CLOUDRON_POSTGRESQL
CLOUDRON_POSTGRESQL_ROOT_PASSWORD=xxxxxx
CLOUDRON_POSTGRESQL_TOKEN=xxxxxx
root@postgresql:/# psql --host=postgresql --user=root --password
Password: (PASTED PW HERE)
psql: error: FATAL:  password authentication failed for user "root"
</code></pre>
<p dir="auto">Any other ideas?</p>
]]></description><link>https://forum.cloudron.io/post/33434</link><guid isPermaLink="true">https://forum.cloudron.io/post/33434</guid><dc:creator><![CDATA[ChicagoGregg]]></dc:creator><pubDate>Mon, 05 Jul 2021 21:01:41 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres root login info? on Mon, 05 Jul 2021 06:25:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chicagogregg" aria-label="Profile: chicagogregg">@<bdi>chicagogregg</bdi></a> you should be able to see that using the following command via SSH on your server:</p>
<pre><code>docker inspect postgresql | grep CLOUDRON_POSTGRESQL_ROOT_PASSWORD
</code></pre>
]]></description><link>https://forum.cloudron.io/post/33412</link><guid isPermaLink="true">https://forum.cloudron.io/post/33412</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 05 Jul 2021 06:25:56 GMT</pubDate></item></channel></rss>