<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>postgresql Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 27 Sep 2022 16:33:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install PostgreSQL on Debian 11</title>
		<link>https://www.osradar.com/install-postgresql-debian-server/</link>
					<comments>https://www.osradar.com/install-postgresql-debian-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 19 Aug 2021 23:45:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31787</guid>

					<description><![CDATA[<p>Hello, friends. Although MariaDB is one of the most important database drivers out there, many large projects prefer to use PostgreSQL. So, taking advantage that we have Debian 11, I will show you how to install PostgreSQL on this system. For the PostgreSQL website and listening to many programmers, “PostgreSQL is The World’s Most Advanced [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-debian-server/">Install PostgreSQL on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. Although MariaDB is one of the most important database drivers out there, many large projects prefer to use PostgreSQL. So, taking advantage that we have Debian 11, I will show you how to install PostgreSQL on this system.</p>



<p class="has-line-data">For the PostgreSQL website and listening to many programmers, “PostgreSQL is The World’s Most Advanced Open Source Relational Database”.</p>



<p class="has-line-data">This is due to its high reliability and the way it works with data. It is said that for really big projects, there is nothing like <a href="https://www.datacamp.com/courses/creating-postgresql-databases">using PostgreSQL</a>. Also, it includes tools like multi version and others that make it very powerful.</p>



<p class="has-line-data">According to the official information that we can find on the web site</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="8" data-line-end="9">PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.</p></blockquote>



<p class="has-line-data">So, let’s go for it.</p>



<h2 class="code-line"><a id="Install_PostgreSQL_on_Debian_11_12"></a>Install PostgreSQL on Debian 11</h2>



<p class="has-line-data">Debian, which is a multipurpose operating system, has many different tools in its official repositories. So it is not surprising that PostgreSQL is also present.</p>



<p class="has-line-data">In addition to the base PostgreSQL package there are also others that we can use at other times. If you want to do a search in the repositories run</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt search postgresql</pre>



<p class="has-line-data">And this way we will be able to see all these packages.</p>



<p class="has-line-data">To install PostgreSQL on Debian 11, you have to run the following command</p>



<pre class="wp-block-preformatted">sudo apt install postgresql-13
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  git-man liberror-perl
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libllvm11 libpq5 libxslt1.1 libz3-4 postgresql-client-13 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
  postgresql-doc-13 libjson-perl
Recommended packages:
  sysstat
The following NEW packages will be installed:
  libllvm11 libpq5 libxslt1.1 libz3-4 postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common ssl-cert
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.3 MB of archives.
After this operation, 165 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="287" src="https://www.osradar.com/wp-content/uploads/2021/08/1-11-1024x287.png" alt="1.- PostgreSQL installed on Debian 11" class="wp-image-31789" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-11-1024x287.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-11-300x84.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-11-768x215.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-11-696x195.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-11-1068x299.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-11.png 1288w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- PostgreSQL installed on Debian 11</figcaption></figure>



<p class="has-line-data">This will install the PostgreSQL base package which will be enough to do a job with it.</p>



<p class="has-line-data">In Debian when installing an application that is managed through a systemd service, it will start automatically.</p>



<p class="has-line-data">So, you can check the status of this service like this</p>



<pre class="wp-block-preformatted">sudo systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
     Active: active (exited) since Wed 2021-08-18 22:27:21 CEST; 4min 40s ago
   Main PID: 11736 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 2277)
     Memory: 0B
        CPU: 0
     CGroup: /system.slice/postgresql.service</pre>



<p class="has-line-data">So PostgreSQL is working properly. If you want to stop, restart or start the service you can use these commands</p>



<pre class="wp-block-preformatted">sudo systemctl stop postgresql
sudo systemctl restart postgresql
sudo systemctl start postgresql</pre>



<p class="has-line-data">Now let’s connect to PostgreSQL</p>



<h2 class="code-line"><a id="Test_the_PostgreSQL_installation_43"></a>Test the PostgreSQL installation</h2>



<p class="has-line-data">Now it’s time to use some PostgreSQL. The console is called <code>psql</code> but it is only available to the <code>postgres</code> user that was created during the installation.</p>



<p class="has-line-data">So, first switch to the <code>postgres</code> user.</p>



<pre class="wp-block-preformatted">sudo -i -u postgres</pre>



<p class="has-line-data">And now if you access the console</p>



<pre class="wp-block-preformatted">psql</pre>



<p class="has-line-data">Inside it, you can execute commands. For example, list the databases:</p>



<pre class="wp-block-preformatted">\l</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="986" height="291" src="https://www.osradar.com/wp-content/uploads/2021/08/2-7.png" alt="2.- Testing PostgreSQL" class="wp-image-31790" srcset="https://www.osradar.com/wp-content/uploads/2021/08/2-7.png 986w, https://www.osradar.com/wp-content/uploads/2021/08/2-7-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/2-7-768x227.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/2-7-696x205.png 696w" sizes="(max-width: 986px) 100vw, 986px" /><figcaption>2.- Testing PostgreSQL</figcaption></figure>



<p class="has-line-data">So, PostgreSQL is installed correctly and is working.</p>



<p class="has-line-data">Enjoy it</p>



<h2 class="code-line"><a id="Conclusion_63"></a>Conclusion</h2>



<p class="has-line-data">In this post, you have learned how to install PostgreSQL in a quick and easy way that can help newbies get started with this powerful database manager.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-debian-server/">Install PostgreSQL on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-debian-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/install-postgresql-13-centos-8/</link>
					<comments>https://www.osradar.com/install-postgresql-13-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 18 Jun 2021 23:25:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13249</guid>

					<description><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8. In addition, we&#8217;ll show you the most basic configurations. At the end of the post, you will have a PostgreSQL installation ready to start working.</p>
<h2>Install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Both RHEL 8 and its derivatives include <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a> 10 in their repositories. However, we already have available version 13. And it is recommended to install it because thanks to it, we can enjoy interesting news and improvements in the performance of the application. Important, if we are going to store large quantities of records.</p>
<p>So first, open a terminal session. Or if you are using a server connect to it using ssh.</p>
<pre>:~$ ssh [your-user]@[your-host]</pre>
<p>Then log in as the root user.</p>
<pre>:~$ su
:~#</pre>
<p>The best way to install PostgreSQL 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is to add the official PostgreSQL refill. Not only is it easy, but also safe and the possibility to be always up to date.</p>
<p>To do this, run the following command:</p>
<pre>:~# dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm</pre>
<p><figure id="attachment_13268" aria-describedby="caption-attachment-13268" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13268" src="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg" alt="1.- Add the PostgreSQL repository" width="1366" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-300x78.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-768x200.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1024x266.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-696x181.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1068x278.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13268" class="wp-caption-text">1.- Add the PostgreSQL repository</figcaption></figure></p>
<p>Then, disable the PostgreSQL module on CentOS 8.</p>
<pre>:~# dnf module disable postgresql</pre>
<p>Now, install PostgreSQL 13 on CentOS 8.</p>
<pre>:~# dnf install postgresql13-server postgresql13</pre>
<p><figure id="attachment_30666" aria-describedby="caption-attachment-30666" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30666 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png" alt="2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8" width="1364" height="435" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png 1364w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1024x327.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1068x341.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-30666" class="wp-caption-text">2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8</figcaption></figure></p>
<p>After that, let us configure it.</p>
<h2>Configure PostgreSQL on CentOS / RHEL 8 / Oracle Linux 8</h2>
<h3>Initialize PostgreSQL database and start the service</h3>
<p>After installing it, the first thing to do is to initialize the database. To achieve this, it is necessary to execute the following command:</p>
<pre>:~# /usr/pgsql-13/bin/postgresql-13-setup initdb
Initializing database ... OK</pre>
<p>With this, we will have already started the initial database. At this point, the PostgreSQL service is not enable, so you can&#8217;t use it yet. Then you have to do it.</p>
<pre>:~# systemctl enable postgresql-13</pre>
<p>Then, if you want PostgreSQL to start along with the system run this command:</p>
<pre>:~# systemctl start postgresql-13</pre>
<p>To check that everything is going well, check the status of the service:</p>
<pre>:~# systemctl status postgresql-13</pre>
<p><figure id="attachment_30667" aria-describedby="caption-attachment-30667" style="width: 1167px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30667 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png" alt="3.- PostgreSQL status" width="1167" height="481" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png 1167w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1024x422.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-696x287.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1068x440.png 1068w" sizes="(max-width: 1167px) 100vw, 1167px" /><figcaption id="caption-attachment-30667" class="wp-caption-text">3.- PostgreSQL status</figcaption></figure></p>
<p>As you can see, everything&#8217;s fine.</p>
<h3>Change the password to the &#8220;postgres&#8221; user and allow the remote connections</h3>
<p>During the installation of PostgreSQL, a new user called postgres is created. The problem is that you do not define a password, so it makes you vulnerable. To avoid problems, it is convenient to create a password.</p>
<p>To do this, just use the Unix passwd command.</p>
<pre>:~# passwd postgres</pre>
<p>There you will have to enter the password twice. If both are effective, the final change will be made.</p>
<p>Now, we have to allow access to remote connections. The client must be installed on each of the systems that will access PostgreSQL. It will depend on each operating system.</p>
<p>Then, a good security measure is to specify the hosts that can access it. Of course, if the data will be served on the Internet, then it is necessary to allow all the accesses.</p>
<pre>:~# nano /var/lib/pgsql/13/data/postgresql.conf
</pre>
<p>then searches for the listen_addresses line and places the hosts that can access it. If you allow any access, type &#8216;*&#8217;.</p>
<pre>listen_addresses = '[host/IP_adress]'
or
listen_addresses = '*'</pre>
<p><figure id="attachment_13272" aria-describedby="caption-attachment-13272" style="width: 766px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13272" src="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg" alt="5.- Allow the remote connections" width="766" height="352" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg 766w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-300x138.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-696x320.jpeg 696w" sizes="(max-width: 766px) 100vw, 766px" /><figcaption id="caption-attachment-13272" class="wp-caption-text">5.- Allow the remote connections</figcaption></figure></p>
<p>Then, restart PostgreSQL.</p>
<pre>:~# systemctl restart postgresql-13</pre>
<p>Finally, you have to open the port 5432 on the firewall to allow the connections.</p>
<pre>:~# firewall-cmd --add-port=5432/tcp --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Now, you can access to the PostgreSQL shell.</p>
<pre>:~# su - postgres
:~# psql</pre>
<p>Now, you can start to work.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is one of the best there is for databases. Thanks to its community spirit, it is possible to find a lot of documentation about it. On the other hand, installing version 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is quite simple as you have seen in this post.</p>
<p>Also, you can read <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener noreferrer">how to install Postgresql on Ubuntu 18.04?</a></p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-13-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL 13 on Debian 10?</title>
		<link>https://www.osradar.com/how-to-install-postgresql-13-debian-10/</link>
					<comments>https://www.osradar.com/how-to-install-postgresql-13-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 17 Jun 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18461</guid>

					<description><![CDATA[<p>Hi, friends, in this post, I&#8217;ll show you how to install PostgreSQL 13 on Debian 10. PostgreSQL 13 is the latest stable version of what is perhaps the most advanced open-source relational database manager. So many sysadmin need to have it on the different servers. If you want to know all the news or at [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-13-debian-10/">How to install PostgreSQL 13 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hi, friends, in this post, I&#8217;ll show you how to install PostgreSQL 13 on Debian 10.</strong></p>
<p>PostgreSQL 13 is the latest stable version of what is perhaps the most advanced open-source relational database manager. So many sysadmin need to have it on the different servers.</p>
<p>If you want to know all the news or at least the most important ones, you can read this post</p>
<p><a href="https://www.postgresql.org/about/news/postgresql-13-released-2077/" target="_blank" rel="noopener noreferrer">PostgreSQL 13 is available</a></p>
<p>Well, PostgreSQL 13 comes with many important improvements and it&#8217;s a good time to install it. That&#8217;s what this post is about.</p>
<p>So let&#8217;s go for it.</p>
<h2>Install PostgreSQL 13 on Debian</h2>
<p>PostgreSQL is included in the official Debian repositories, but not in version 13 but in version 11.</p>
<p>The installation of PostgreSQL 13 is possible thanks to the repository it has for APT package managers that is used by Debian, Ubuntu, Linux Mint and derivatives.</p>
<p>So let&#8217;s start.</p>
<p>First, open a terminal session or connect to your server using SSH. Then, install some necessary packages:</p>
<pre>:~$ sudo apt install gnupg gnupg2</pre>
<p>At the end, the PostgreSQL 13 repository should be added to the list of Debian software sources. To do this, create the following file:</p>
<pre>:~$ sudo nano /etc/apt/sources.list.d/pgdg.list</pre>
<p>And in it he adds the following:</p>
<pre>deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main</pre>
<p><figure id="attachment_18614" aria-describedby="caption-attachment-18614" style="width: 910px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18614" src="https://www.osradar.com/wp-content/uploads/2020/02/1-18.png" alt="1.- Adding the postgresql repository" width="910" height="109" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-18.png 910w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-300x36.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-768x92.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-18-696x83.png 696w" sizes="(max-width: 910px) 100vw, 910px" /><figcaption id="caption-attachment-18614" class="wp-caption-text">1.- Adding the postgresql repository</figcaption></figure></p>
<p>Then save the changes by pressing CTRL + O and close the file by pressing CTRL + X.</p>
<p>For the repository to be accepted by the system, you need to add the gpg key to it. To do this, use the following command:</p>
<pre>:~$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
OK</pre>
<p><figure id="attachment_18615" aria-describedby="caption-attachment-18615" style="width: 991px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18615" src="https://www.osradar.com/wp-content/uploads/2020/02/2-17.png" alt="2.- Adding the GPG key for the repository" width="991" height="129" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-17.png 991w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-768x100.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-17-696x91.png 696w" sizes="(max-width: 991px) 100vw, 991px" /><figcaption id="caption-attachment-18615" class="wp-caption-text">2.- Adding the GPG key for the repository</figcaption></figure></p>
<p>Once the process has been completed, simply update the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>You can now view all the packages related to PostgreSQL 13 by typing</p>
<pre>:~$ sudo apt install postgresql-13</pre>
<p>But don&#8217;t press enter, just press the TAB key and you&#8217;ll see the following:</p>
<p><figure id="attachment_30630" aria-describedby="caption-attachment-30630" style="width: 1279px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30630 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/3-27.png" alt="3.- All postgresql 13 packages" width="1279" height="713" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-27.png 1279w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-1024x571.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-768x428.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-696x388.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-27-1068x595.png 1068w" sizes="(max-width: 1279px) 100vw, 1279px" /><figcaption id="caption-attachment-30630" class="wp-caption-text">3.- All postgresql 13 packages</figcaption></figure></p>
<p>As you can see in the image, we have PostgreSQL 13 available. So to install it run the following command:</p>
<pre>:~$ sudo apt install postgresql-13
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
libgdbm-compat4 libjson-perl libllvm7 libperl5.28 libpq5 libxslt1.1 perl pgdg-keyring postgresql-client-13 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl postgresql-doc-13 openssl-blacklist
Recommended packages:
libjson-xs-perl sysstat
The following NEW packages will be installed:
libgdbm-compat4 libjson-perl libllvm7 libperl5.28 libpq5 libxslt1.1 perl pgdg-keyring postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common
ssl-cert
0 upgraded, 13 newly installed, 0 to remove and 10 not upgraded.
Need to get 34.5 MB of archives.
After this operation, 145 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_30631" aria-describedby="caption-attachment-30631" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30631 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/4-22.png" alt="4.- Install PostgreSQL 13 on Debian 10" width="1365" height="307" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4-22.png 1365w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-1024x230.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-768x173.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-696x157.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/4-22-1068x240.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30631" class="wp-caption-text">4.- Install PostgreSQL 13 on Debian 10</figcaption></figure></p>
<p>Now we&#8217;ll see if everything went well.</p>
<h2>Testing the installation</h2>
<p>By default, Debian when installing PostgreSQL starts and enables the service. Therefore, it is ready to be tested. However, if you want to stop the service, you can use this command:</p>
<pre>:~$ sudo systemctl stop postgresql</pre>
<p>On the other hand, the best way to know if PostgreSQL is ready for work is to execute some command from the console. So we&#8217;ll access it first:</p>
<pre>:~$ sudo -i -u postgres</pre>
<p>Remember that the PostgreSQL console is accessed through the postgres user.</p>
<p>And finally, we access with this command:</p>
<pre>:~# psql</pre>
<p>Once inside, we can, for example, display all the databases in the system:</p>
<pre>:~# \l</pre>
<p><figure id="attachment_18618" aria-describedby="caption-attachment-18618" style="width: 885px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18618" src="https://www.osradar.com/wp-content/uploads/2020/02/5-12.png" alt="5.- All postgresql databases" width="885" height="317" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-12.png 885w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-12-696x249.png 696w" sizes="(max-width: 885px) 100vw, 885px" /><figcaption id="caption-attachment-18618" class="wp-caption-text">5.- All postgresql databases</figcaption></figure></p>
<p>And so we can work without problems with PostgreSQL.</p>
<h2>Conclusion</h2>
<p>PostgreSQL 13 is a powerful database manager that is used in many projects worldwide. This makes many people want to have the latest stable versions to take even more advantage of the tool.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-13-debian-10/">How to install PostgreSQL 13 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-postgresql-13-debian-10/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL on Fedora 34?</title>
		<link>https://www.osradar.com/install-postgresql-fedora-34/</link>
					<comments>https://www.osradar.com/install-postgresql-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 14 May 2021 03:11:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11983</guid>

					<description><![CDATA[<p>We are celebrating the launch of Fedora 34. So we are aware that many developers use it to do their daily work. So they probably need to install some database manager. We recently explained how to install Lamp in Fedora and there you could learn how to install MariaDB. However, it is true that many [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-fedora-34/">How to install PostgreSQL on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.osradar.com/fedora-34-released/" target="_blank" rel="noopener">We are celebrating the launch of Fedora 34</a>. So we are aware that many developers use it to do their daily work. So they probably need to install some database manager. We recently explained how to install Lamp in Fedora and there you could learn how to install MariaDB. However, it is true that many developers prefer to use PostgreSQL because of its performance. So, in this post, I will teach you how to install PostgreSQL on Fedora 34.</p>
<p>It is not necessary talk much about <a href="https://www.postgresql.org/" target="_blank" rel="noopener noreferrer">PostgreSQL</a>. However, very briefly I will explain you what it is. It is a <a href="https://www.osradar.com/tag/sql/" target="_blank" rel="noopener noreferrer">SQL</a> database manager, open source and well known by application developers. Mainly because it has a considerably superior performance to others like MariaDB or MySQL. So we will have enterprise power in a community program. Sounds good, no?</p>
<p>PostgreSQL has an updated repository for Fedora. However, due to the recent release of Fedora 34, version 11 is available. So in this sense we will have no problems.</p>
<h2>Install PostgreSQL on Fedora 34</h2>
<p>While PostgreSQL is an application, it has many additional libraries to extend its functionality. Or, to make it work with other programming languages such as <a href="https://www.osradar.com/integrate-the-javadoc-to-netbeans/" target="_blank" rel="noopener noreferrer">Java</a>, Python, C++ or PHP. In addition, we can have access to other libraries of the program for development.</p>
<p>So, first of all, I am going to use DNF the Fedora package manager to look for all PostgreSQL related packages.</p>
<pre>:~$ sudo dnf search postgresql</pre>
<p><figure id="attachment_29991" aria-describedby="caption-attachment-29991" style="width: 1196px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29991 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/1-17.png" alt="Using DNF for search PostgreSQL" width="1196" height="709" srcset="https://www.osradar.com/wp-content/uploads/2019/05/1-17.png 1196w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-1024x607.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-768x455.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-696x413.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/1-17-1068x633.png 1068w" sizes="(max-width: 1196px) 100vw, 1196px" /><figcaption id="caption-attachment-29991" class="wp-caption-text">Using DNF for search PostgreSQL</figcaption></figure></p>
<p>As you can see, there are many packages related to PostgreSQL. But as I said before, they refer to libraries needed to extend the functionality.</p>
<p>Now, let&#8217;s install it.</p>
<pre>:~$ sudo dnf install postgresql-server</pre>
<p><figure id="attachment_29992" aria-describedby="caption-attachment-29992" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29992 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/2-16.png" alt="2.- Install PostgreSQL on Fedora 34" width="1365" height="485" srcset="https://www.osradar.com/wp-content/uploads/2019/05/2-16.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-1024x364.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-696x247.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/2-16-1068x379.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-29992" class="wp-caption-text">2.- Install PostgreSQL on Fedora 34</figcaption></figure></p>
<p>Then you have to prepare PostgreSQL for the first use. So, we have to init the database and then, start the service. After that, test it.</p>
<pre>:~$ sudo /usr/bin/postgresql-setup --initdb</pre>
<p><figure id="attachment_29993" aria-describedby="caption-attachment-29993" style="width: 736px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29993 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/3-14.png" alt="3.- Initialize the sample database" width="736" height="148" srcset="https://www.osradar.com/wp-content/uploads/2019/05/3-14.png 736w, https://www.osradar.com/wp-content/uploads/2019/05/3-14-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/3-14-696x140.png 696w" sizes="(max-width: 736px) 100vw, 736px" /><figcaption id="caption-attachment-29993" class="wp-caption-text">3.- Initialize the sample database</figcaption></figure></p>
<p>Next, enable and start the service.</p>
<pre>:~$ sudo systemctl enable postgresql
Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /usr/lib/systemd/system/postgresql.service.
:~$ sudo systemctl start postgresql</pre>
<p>Now, test the installation.</p>
<pre>:~$ sudo su - postgres</pre>
<p>And access to the PostgreSQL console.</p>
<pre>:~$ psql</pre>
<p>Then, list all databases.</p>
<pre>:~$ \l</pre>
<p><figure id="attachment_29994" aria-describedby="caption-attachment-29994" style="width: 960px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29994 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/4-11.png" alt="4.- PostgreSQL is correctly installed on Fedora 34" width="960" height="309" srcset="https://www.osradar.com/wp-content/uploads/2019/05/4-11.png 960w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-768x247.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/4-11-696x224.png 696w" sizes="(max-width: 960px) 100vw, 960px" /><figcaption id="caption-attachment-29994" class="wp-caption-text">4.- PostgreSQL is correctly installed on Fedora 34</figcaption></figure></p>
<p>So, PostgreSQL is correctly installed.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is a great database manager and today you have learned how to install it in Fedora 34. So as you can see it&#8217;s quite easy, just share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-fedora-34/">How to install PostgreSQL on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install pgAdmin4 on CentOS 8?</title>
		<link>https://www.osradar.com/install-pgadmin4-centos-8/</link>
					<comments>https://www.osradar.com/install-pgadmin4-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 21 Jan 2021 02:44:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos8]]></category>
		<category><![CDATA[Pgadmin]]></category>
		<category><![CDATA[pgadmin4]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27815</guid>

					<description><![CDATA[<p>Hello friends in this post, you will learn how to install pgAdmin4 on CentOS 8. This process is quite simple but requires some steps. pgAdmin is the most popular and features rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. Thanks to this application, you can [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-centos-8/">How to install pgAdmin4 on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p id="introduction"><a name="introduction" href="#introduction"></a>Hello friends in this post, you will learn how to install pgAdmin4 on CentOS 8. This process is quite simple but requires some steps.</p>



<p><a href="https://www.pgadmin.org/">pgAdmin</a> is the most popular and features rich Open Source administration and development platform for <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a>, the most advanced Open Source database in the world.</p>



<p>Thanks to this application, you can have a graphical interface to manage everything related to PostgreSQL. The main advantage of this program is the ability to view all the records we have stored. On the other hand, we can create connections and customize them to achieve even more security. It is also possible to create, modify, and delete databases.</p>



<p>So, pgAdmin4 becomes a printable application if you use a lot of PostgreSQL or if you want to use it for educational purposes.</p>



<p>So, let us install pgAdmin4 on CentOS 8.</p>



<h2 id="install-postgresql-on-centos-8"><a href="#install-postgresql-on-centos-8" name="install-postgresql-on-centos-8"></a>Install PostgreSQL on CentOS 8</h2>



<p>The first step we have to do is to have an instance of PostgreSQL up and running on our server. For this we have a post that can help you with this:</p>



<p><a href="https://www.osradar.com/install-postgresql-12-centos-8/">How to install PostgreSQL 12 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>



<p>Once PostgreSQL is correctly installed and configured then we can proceed to install PgAdmin4 without any problems.</p>



<h2 id="install-pgadmin4-on-centos-8"><a name="install-pgadmin4-on-centos-8" href="#install-pgadmin4-on-centos-8"></a>Install pgAdmin4 on CentOS 8</h2>



<p>The first thing we have to do is update the operating system.</p>



<pre class="wp-block-preformatted">dnf update</pre>



<p>Then, enable the EPEL repository that we will need to enhance the installation:</p>



<pre class="wp-block-preformatted">dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</pre>



<p>Within this repository, there is one called <code>powertool</code> that we also have to enable.</p>



<pre class="wp-block-preformatted">dnf config-manager --set-enabled powertools</pre>



<p>And finally, install pgAdmin4 by running the following command:</p>



<pre class="wp-block-preformatted">dnf --enablerepo=powertools install pgadmin4</pre>



<p>After accepting the changes, the download and installation process will begin.</p>



<h3 id="preparing-pgadmin4-for-the-firt-use"><a href="#preparing-pgadmin4-for-the-firt-use" name="preparing-pgadmin4-for-the-firt-use"></a>Preparing pgAdmin4 for the firt use</h3>



<p>Before using pgAdmin4 it is advisable to make a few settings so as not to have problems of any kind.</p>



<p>First, start and enable the Apache webserver that was installed during the process.</p>



<pre class="wp-block-preformatted">systemctl enable httpd
systemctl start httpd</pre>



<p>pgAdmin comes with a default Apache configuration, which we can use or modify. In this case, we will copy it to take advantage of it.</p>



<pre class="wp-block-preformatted">cp /etc/httpd/conf.d/pgadmin4.conf.sample /etc/httpd/conf.d/pgadmin4.conf</pre>



<p>Apply the changes by restarting Apache:</p>



<pre class="wp-block-preformatted">systemctl restart httpd</pre>



<p>The next step is to create dedicated folders for pgAdmin log and lib. You can choose another location but the most pertinent is <code>/var/</code></p>



<pre class="wp-block-preformatted">mkdir -p /var/lib/pgadmin4/
mkdir -p /var/log/pgadmin4/</pre>



<p>You can then configure pgAdmin4 to tell it to use the paths of the folders you have created.</p>



<pre class="wp-block-preformatted">nano /usr/lib/python3.6/site-packages/pgadmin4-web/config_distro.py</pre>



<p> And add the following lines:</p>



<pre class="wp-block-preformatted"><code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">LOG_FILE = '/var/log/pgadmin4/pgadmin4.log</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">SESSION_DB_PATH = '/var/lib/pgadmin4/sessions</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">STORAGE_DIR = '/var/lib/pgadmin4/storage </code></pre>



<p>Save the changes, and then close the file.</p>



<p>Now define the username and password that we will use to access pgAdmin4.</p>



<pre class="wp-block-preformatted">python3 /usr/lib/python3.6/site-packages/pgadmin4-web/setup.py </pre>



<p>And there you will have to set the password.</p>



<figure class="wp-block-image alignnone size-full wp-image-27819"><img loading="lazy" width="991" height="218" src="https://www.osradar.com/wp-content/uploads/2021/01/1-8.png" alt="1.- Configure a new admin for pgAdmin4" class="wp-image-27819" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-8.png 991w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-300x66.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-768x169.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-696x153.png 696w" sizes="(max-width: 991px) 100vw, 991px" /><figcaption>1.- Configure a new admin for pgAdmin4</figcaption></figure>



<p>Assign Apache to be the owner of the created directories.</p>



<pre class="wp-block-preformatted">chown -R apache:apache /var/lib/pgadmin4
chown -R apache:apache /var/log/pgadmin4</pre>



<p>Apply all changes by restarting Apache and PostgreSQL.</p>



<pre class="wp-block-preformatted">systemctl restart httpd
systemctl restart postgresql-12 </pre>



<p>Now we can use it.</p>



<h2 id="testing-the-installation"><a href="#testing-the-installation" name="testing-the-installation"></a>Testing the installation</h2>



<p>Now we can access <code>http://your-server/pgadmin4</code> and you should see the following screen</p>



<figure class="wp-block-image alignnone size-full wp-image-27817"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/01/1-7.png" alt="2.- pgAdmin login screen" class="wp-image-27817" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-7.png 1366w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-1068x523.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>2.- pgAdmin login screen</figcaption></figure>



<p>Now login with your credentials and you will see the pgAdmin main screen. This proves that everything works.</p>



<figure class="wp-block-image alignnone size-full wp-image-27818"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/01/2-8.png" alt="3.- pgAdmin4 running on CentOS 8" class="wp-image-27818" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-1068x523.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>3.- pgAdmin4 running on CentOS 8</figcaption></figure>



<p>All you have to do now is add your PostgreSQL instance.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>pgAdmin4 is a vital tool to manipulate PostgreSQL visually and very easily. Its potentials are vast and it is recommended that you visit the project website to learn more about it.</p>



<footer style="position: fixed; font-size: .8em; text-align: right; bottom: 0px; margin-left: -25px; height: 20px; width: 100%;">generated by <a href="http://pad.haroopress.com" target="_blank" rel="noopener">haroopad</a></footer>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-centos-8/">How to install pgAdmin4 on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-pgadmin4-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAPP (Apache + PHP + PostgreSQL) on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Nov 2020 16:32:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[lapp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25196</guid>

					<description><![CDATA[<p>There are many combinations of programs and servers in Linux. Of all of them, the LAMP or LEMP stack is one of the most known and popular but some prefer PostgreSQL over MariaDB / MySQL. So, in this post, you will learn how to install the LAPP stack on Ubuntu 20.04 This stack also provides [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/">How to install LAPP (Apache + PHP + PostgreSQL) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>There are many combinations of programs and servers in Linux. Of all of them, the LAMP or LEMP stack is one of the most known and popular but some prefer PostgreSQL over MariaDB / MySQL. So, in this post, you will learn how to install the LAPP stack on Ubuntu 20.04</p>



<p>This stack also provides us with a functional server but with a different database manager like PostgreSQL. This database handler is maybe the most powerful in the world in open source. So it is normal that many want to make the change.</p>



<p>So, let&#8217;s start.</p>



<h2>How to install LAPP on Ubuntu 20.04</h2>



<h3>1.- Install Apache web server on Ubuntu 20.04</h3>



<p>The first step is to install the Apache webserver which is one of the most secure and reliable servers within Linux. Together with <a href="https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/" target="_blank" rel="noreferrer noopener">Nginx</a>, they are one of the most popular in the world.</p>



<p>So, open a terminal or SSH session and run it:</p>



<pre class="wp-block-preformatted">sudo apt install apache2</pre>



<p>Then, start the service and enable it to start with the system:</p>



<p>sudo systemctl start apache2<br>sudo systemctl enable apache2</p>



<p>Finally, you can open a web browser and go to the following address <code>http://your-server</code> or <code>http://ip-server</code> and you will see Apache&#8217;s default page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="505" src="https://www.osradar.com/wp-content/uploads/2020/04/3-14-1024x505.png" alt="Apache Default page on Ubuntu 20.04" class="wp-image-19873" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-14-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/3-14.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Apache Default page on Ubuntu 20.04</figcaption></figure>



<p>This indicates that the installation has been successful.</p>



<h3>2.- Install PHP on Ubuntu 20.04</h3>



<p>Now the next component is PHP which is a very popular programming language in the web environment. Therefore, it must be installed along with some of its fundamental modules.</p>



<pre class="wp-block-preformatted">php7.4 libapache2-mod-php7.4 openssl php-imagick php7.4-common php7.4-curl php7.4-gd php7.4-imap php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-pgsql php-ssh2 php7.4-xml php7.4-zip unzip</pre>



<p>Now to prove that PHP and Apache are working properly, let&#8217;s make a test file.</p>



<pre class="wp-block-preformatted">sudo nano /var/www/html/test.php</pre>



<p>And add the following content:</p>



<p>Save the changes and close the editor.</p>



<p>Then restart Apache:</p>



<pre class="wp-block-preformatted">sudo systemctl restart apache2</pre>



<p>Then open it from your web browser, for example <code>http://your-server/test.php</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/04/7-9-1024x506.png" alt="PHPinfo method" class="wp-image-19919" srcset="https://www.osradar.com/wp-content/uploads/2020/04/7-9-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/7-9.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>PHPinfo method</figcaption></figure>



<p>If you manage to see a page with the PHP information, then both are working correctly.</p>



<h3>3.- Install PostgreSQL on  Ubuntu 20.04</h3>



<p><a href="https://www.postgresql.org/">PostgreSQL</a> is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and <a href="https://www.osradar.com/tag/mysql/">MariaDB</a> in the segment of open source and community database managers.</p>



<p>One of the main advantages of using PostgreSQL is that it has extensive documentation and supports powerful features. All this in an open-source and free application.</p>



<p>Installing PostgreSQL is quite simple and we explain it in detail in this post:</p>



<p><a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How to install PostgreSQL on Ubuntu 20.04?</a></p>



<p>And so you have the LAPP stack ready to work.</p>



<h2>Conclusion</h2>



<p>The LAMP stack is one of the popular and famous ones that exist but it is not the only one. Now we present you an alternative that changes to MySQL / MariaDB by PostgreSQL in a fast and easy way and forming the LAPP stack that is quite used too</p>



<p>Thanks for reading</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/">How to install LAPP (Apache + PHP + PostgreSQL) on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PgAdmin4 on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-pgadmin4-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-pgadmin4-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 08 Jun 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20933</guid>

					<description><![CDATA[<p>Hi, folks. In this post, you will learn how to install pgAdmin4 on Ubuntu 20.04 This is, perhaps, the most advanced PostgreSQL front-end in the world. So if you work with PostgreSQL is a good idea to have it installed. pgAdmin is the most popular and features rich Open Source administration and development platform for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-ubuntu-20-04/">How to install PgAdmin4 on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. In this post, you will learn how to install pgAdmin4 on Ubuntu 20.04 This is, perhaps, the most advanced PostgreSQL front-end in the world. So if you work with PostgreSQL is a good idea to have it installed.</p>



<p><a href="https://www.pgadmin.org/">pgAdmin</a> is the most popular and features rich Open Source administration and development platform for <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a>, the most advanced Open Source database in the world.</p>



<p>Thanks to this application, you can have a graphical interface to manage everything related to PostgreSQL. The main advantage of this program is the ability to view all the records we have stored. On the other hand, we can create connections and customize them to achieve even more security. It is also possible to create, modify and delete databases.</p>



<p>So, pgAdmin4 becomes a printable application if you use a lot of PostgreSQL or if you want to use it for educational purposes.</p>



<p>So, let us install pgAdmin4 on Ubuntu 20.04.</p>



<h2>Install pgAdmin4 on Ubuntu 20.04</h2>



<p>First, you need to install PostgreSQL on Ubuntu 20.04</p>



<p><a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">Install PostgreSQL on Ubuntu 20.04</a></p>



<p>To install pgAdmin4 on Ubuntu 20.04 we need to add an external repository. This is so that we can have the latest version available for this program.</p>



<p>So, create a new repository file called <code>pgdg.list</code></p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/apt/sources.list.d/pgdg.list</pre>



<p>And add the next line in the file:</p>



<pre class="wp-block-preformatted">deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="916" height="116" src="https://www.osradar.com/wp-content/uploads/2020/06/1-4.png" alt="1.- Adding the pgAdmin repository" class="wp-image-20934" srcset="https://www.osradar.com/wp-content/uploads/2020/06/1-4.png 916w, https://www.osradar.com/wp-content/uploads/2020/06/1-4-300x38.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/1-4-768x97.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/1-4-696x88.png 696w" sizes="(max-width: 916px) 100vw, 916px" /><figcaption>1.- Adding the pgAdmin repository</figcaption></figure>



<p>Save the changes and close the file.</p>



<p>Then add the GPG key to the repository to make sure the system can recognize it.</p>



<pre class="wp-block-preformatted">wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
OK</pre>



<p>Refresh the repositories:</p>



<pre class="wp-block-preformatted">:~$ sudo apt-get update</pre>



<p>And now yes, install pgAdmin4 on Ubuntu 20.04 with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install pgadmin4 pgadmin4-apache2</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="524" src="https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-1024x524.png" alt="2.- Installing pgAdmin4 on Ubuntu 20.04" class="wp-image-20935" srcset="https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-1024x524.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/2-4-e1591630425944.png 1364w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Installing pgAdmin4 on Ubuntu 20.04</figcaption></figure>



<p>During the installation, you will be asked to enter the user&#8217;s email address. This email will be used to login.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="487" src="https://www.osradar.com/wp-content/uploads/2020/06/3-4-1024x487.png" alt="3.- Configuring pgAdmin4" class="wp-image-20936" srcset="https://www.osradar.com/wp-content/uploads/2020/06/3-4-1024x487.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/3-4-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/3-4-768x365.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/3-4-696x331.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/3-4-1068x508.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/3-4.png 1348w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Configuring pgAdmin4</figcaption></figure>



<p>After that, define the initial password:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="491" src="https://www.osradar.com/wp-content/uploads/2020/06/4-5-1024x491.png" alt="4.- Creating the initial user for pgAdmin4" class="wp-image-20937" srcset="https://www.osradar.com/wp-content/uploads/2020/06/4-5-1024x491.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/4-5-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/4-5-768x368.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/4-5-696x334.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/4-5-1068x512.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/4-5.png 1356w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Creating the initial user for pgAdmin4</figcaption></figure>



<p>When the installation is complete, enable the rewrite PHP mod:</p>



<pre class="wp-block-preformatted">:~$ sudo a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2</pre>



<p>So, restart Apache:</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl restart apache2</pre>



<p>Now let&#8217;s test it by making a connection.</p>



<h2>Testing pgAdmin4 on Ubuntu 20.04</h2>



<p>We need to prove that everything is OK, to do so, open your web browser and go to the following address:</p>



<pre class="wp-block-preformatted">http://your-server/pgadmin4/</pre>



<p>Or:</p>



<pre class="wp-block-preformatted">http://localhost/pgadmin4/</pre>



<p>And you will see the Login screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/06/5-5-1024x502.png" alt="5.- pgAdmin4 Login screen" class="wp-image-20939" srcset="https://www.osradar.com/wp-content/uploads/2020/06/5-5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/5-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/5-5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/5-5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/5-5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/5-5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- pgAdmin4 Login screen</figcaption></figure>



<p>Enter the email and password you created during the installation and you will see the following screen:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/06/6-3-1024x502.png" alt="6.- pgAdmin4 dashboard" class="wp-image-20940" srcset="https://www.osradar.com/wp-content/uploads/2020/06/6-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/6-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/6-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/6-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/6-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/6-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- pgAdmin4 dashboard</figcaption></figure>



<p>Now we will create a new connection, to do this click on the option <em>Add New Server</em>.</p>



<p>In the <em>General</em> tab, assign a name to the connection.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/06/7-3-1024x502.png" alt="7.- Creating a new connection" class="wp-image-20941" srcset="https://www.osradar.com/wp-content/uploads/2020/06/7-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/7-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/7-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/7-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/7-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/7-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Creating a new connection</figcaption></figure>



<p>Then, in the <em>Connection</em> tab, define the connection parameters such as <em>host</em>, <em>username</em>, <em>port</em>, and <em>password</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/06/8-3-1024x502.png" alt="8.- Adding the connection parameters" class="wp-image-20942" srcset="https://www.osradar.com/wp-content/uploads/2020/06/8-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/8-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/8-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/8-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/8-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/8-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- Adding the connection parameters</figcaption></figure>



<p>If everything went well, the connection will be active.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/06/9-3-1024x502.png" alt="9.- pgAdmin4 on Ubuntu 20.04" class="wp-image-20943" srcset="https://www.osradar.com/wp-content/uploads/2020/06/9-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/9-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/9-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/9-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/9-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/9-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>9.- pgAdmin4 on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>pgAdmin4 is a vital tool to manipulate PostgreSQL visually and very easily. Its potentials are vast and it is recommended that you visit the project website to learn more about it.</p>



<p>Please share this post with your friends and join our <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">Telegram Channel</a>. Also, buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-ubuntu-20-04/">How to install PgAdmin4 on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-pgadmin4-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 08 May 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[postgresql]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19899</guid>

					<description><![CDATA[<p>Hi, folks. In this post, you will learn how to install PostgreSQL on Ubuntu 20.04 Perhaps the most advanced open-source relational database management system in the world. So, it&#8217;s one of the main options to take into account for the development of applications or to serve data from other compatible applications. PostgreSQL PostgreSQL is one [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/">How to install PostgreSQL on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi, folks. In this post, you will learn how to install PostgreSQL on Ubuntu 20.04 Perhaps the most advanced open-source relational database management system in the world. So, it&#8217;s one of the main options to take into account for the development of applications or to serve data from other compatible applications.</p>
<h2>PostgreSQL</h2>
<p><a href="https://www.postgresql.org/">PostgreSQL</a> is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and <a href="https://www.osradar.com/tag/mysql/">MariaDB</a> in the segment of open source and community database managers.</p>
<p>One of the main advantages of using PostgreSQL is that it has extensive documentation and supports powerful features. All this in an open-source and free application.</p>
<p>On the other hand, PostgreSQL has certain features that make it quite complete as is the proper management of resources or its ability to be multi-version. All this together with an experienced development makes it quite powerful.</p>
<h2>Install PostgreSQL on Ubuntu 20.04</h2>
<p>With every new system, there are lots of software updates. So, at the time of writing this post, PostgreSQL 12 is the latest stable version and is in the Ubuntu 20.04 repositories.</p>
<p>So, open a terminal and refresh the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Once the process is complete, you can list all PostgreSQL-related packages in the official repositories:</p>
<pre>:~$ sudo apt list postgresql*</pre>
<p><figure id="attachment_20231" aria-describedby="caption-attachment-20231" style="width: 1140px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-20231" src="https://www.osradar.com/wp-content/uploads/2020/04/1-26.png" alt="1.- All PostgreSQL package on Ubuntu 20.04" width="1140" height="716" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-26.png 1140w, https://www.osradar.com/wp-content/uploads/2020/04/1-26-300x188.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-26-1024x643.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/1-26-768x482.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-26-696x437.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/1-26-1068x671.png 1068w" sizes="(max-width: 1140px) 100vw, 1140px" /><figcaption id="caption-attachment-20231" class="wp-caption-text">1.- All PostgreSQL package on Ubuntu 20.04</figcaption></figure></p>
<p>In the image, you can see that there are many PostgreSQL packages in the repositories. This means that the installation will be easy.</p>
<p>Also, these packages that you probably don&#8217;t know, are libraries and add-ons for PostgreSQL. If you are an experienced developer you will probably have to use them eventually.</p>
<p>However, if you are a newcomer, you may feel a bit overwhelmed by the number of packages available, so you can only consult the <code>postgresql</code> meta package</p>
<pre>:~$ sudo apt list postgresql
postgresql/focal 12+214 all</pre>
<p>So, to install PostgreSQL 12 on Ubuntu 20.04 just run this command:</p>
<pre>:~$ sudo apt install postgresql-12
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libllvm10 libpq5 libsensors-config libsensors5 postgresql-client-12 postgresql-client-common postgresql-common sysstat
Suggested packages:
  lm-sensors postgresql-doc-12 libjson-perl isag
The following NEW packages will be installed:
  libllvm10 libpq5 libsensors-config libsensors5 postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common sysstat
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.6 MB of archives.
After this operation, 121 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_20232" aria-describedby="caption-attachment-20232" style="width: 1253px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-20232" src="https://www.osradar.com/wp-content/uploads/2020/05/2-6.png" alt="2.- Install PostgreSQL on Ubuntu 20.04" width="1253" height="279" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-6.png 1253w, https://www.osradar.com/wp-content/uploads/2020/05/2-6-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-6-1024x228.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/2-6-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-6-696x155.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-6-1068x238.png 1068w" sizes="(max-width: 1253px) 100vw, 1253px" /><figcaption id="caption-attachment-20232" class="wp-caption-text">2.- Install PostgreSQL on Ubuntu 20.04</figcaption></figure></p>
<p>If all goes well, at the end of the screen output you will see some useful information to help you with your PostgreSQL 12.</p>
<p><figure id="attachment_20233" aria-describedby="caption-attachment-20233" style="width: 1328px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-20233" src="https://www.osradar.com/wp-content/uploads/2020/05/3-5.png" alt="3.- PostgreSQL installed" width="1328" height="481" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-5.png 1328w, https://www.osradar.com/wp-content/uploads/2020/05/3-5-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-5-1024x371.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/3-5-768x278.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-5-696x252.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/3-5-1068x387.png 1068w" sizes="(max-width: 1328px) 100vw, 1328px" /><figcaption id="caption-attachment-20233" class="wp-caption-text">3.- PostgreSQL installed</figcaption></figure></p>
<p>As in other installations of other programs such as MySQL or MariaDB, Ubuntu automatically starts the PostgreSQL service. In case you want to stop it, run this command</p>
<pre>:~$ sudo systemctl stop postgresql</pre>
<p>Also, Ubuntu enables PostgreSQL to start with the system. If you do not want it to</p>
<pre>:~$ sudo systemctl disable postgresql</pre>
<p>To reverse these changes, execute these two commands:</p>
<pre>:~$ sudo systemctl start postgresql
:~$ sudo systemctl enable postgresql</pre>
<p>In short, PostgreSQL is one more service of the system, so you can manage it thanks to <a href="https://www.osradar.com/the-linux-systemctl-command/" target="_blank" rel="noopener noreferrer">the systemctl command</a>.</p>
<p>Finally, check the status of the service to know if it is running correctly:</p>
<pre>:~ sudo systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
     Active: active (exited) since Tue 2020-05-05 14:57:30 UTC; 35min ago
   Main PID: 2704 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 506)
     Memory: 0B
     CGroup: /system.slice/postgresql.service
May 05 14:57:30 osradar systemd[1]: Starting PostgreSQL RDBMS...
May 05 14:57:30 osradar systemd[1]: Finished PostgreSQL RDBMS.</pre>
<p><figure id="attachment_20234" aria-describedby="caption-attachment-20234" style="width: 963px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-20234" src="https://www.osradar.com/wp-content/uploads/2020/05/4-4.png" alt="4.- PostgreSQL service status" width="963" height="243" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-4.png 963w, https://www.osradar.com/wp-content/uploads/2020/05/4-4-300x76.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/4-4-768x194.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/4-4-696x176.png 696w" sizes="(max-width: 963px) 100vw, 963px" /><figcaption id="caption-attachment-20234" class="wp-caption-text">4.- PostgreSQL service status</figcaption></figure></p>
<p>So, PostgreSQL is running correctly and is ready for work.</p>
<h2>Testing PostgreSQL on Ubuntu 20.04</h2>
<p>The truth is that it is useless to install without at least checking that everything is fine. To do this, you need to at least execute a command in the PostgreSQL console.</p>
<p>PostgreSQL takes security quite seriously so during the installation, it creates a new system user. It is this user called <code>postgres</code> that has access to the PostgreSQL console.</p>
<p>So, to change the user, run the following command:</p>
<pre>:~$ sudo -i -u postgres</pre>
<p>Then, access the PostgreSQL console with this command:</p>
<pre>:~$ psql</pre>
<p>And now you can start typing certain commands to prove that PostgreSQL is working correctly. For example, show all the databases that exist:</p>
<pre>:~# \l</pre>
<p><figure id="attachment_20236" aria-describedby="caption-attachment-20236" style="width: 1002px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-20236" src="https://www.osradar.com/wp-content/uploads/2020/05/5-3.png" alt="5.- PostgreSQL on Ubuntu 20.04" width="1002" height="309" srcset="https://www.osradar.com/wp-content/uploads/2020/05/5-3.png 1002w, https://www.osradar.com/wp-content/uploads/2020/05/5-3-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/5-3-768x237.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/5-3-696x215.png 696w" sizes="(max-width: 1002px) 100vw, 1002px" /><figcaption id="caption-attachment-20236" class="wp-caption-text">5.- PostgreSQL on Ubuntu 20.04</figcaption></figure></p>
<p>This way, we can be sure that the installation has been a success.</p>
<h2>Conclusion</h2>
<p>A great application can not be made if it does not have the backing of a great database manager. This is why today we have taught you how to install PostgreSQL on Ubuntu 20.04 because we are sure that an application that uses this database manager is synonymous with security and robustness.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/">How to install PostgreSQL on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-postgresql-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install PostgreSQL on FreeBSD 12</title>
		<link>https://www.osradar.com/install-postgresql-freebsd-12/</link>
					<comments>https://www.osradar.com/install-postgresql-freebsd-12/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 22 Feb 2020 00:02:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17980</guid>

					<description><![CDATA[<p>To develop great applications you need a great database manager. So, that is why in this post I will teach you how to install PostgreSQL 12 on FreeBSD 12. PostgreSQL PostgreSQL is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of MySQL and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-freebsd-12/">Install PostgreSQL on FreeBSD 12</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To develop great applications you need a great database manager. So, that is why in this post <strong>I will teach you how to install PostgreSQL 12 on FreeBSD 12.</strong></p>
<h2>PostgreSQL</h2>
<p><a href="https://www.postgresql.org/">PostgreSQL</a> is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and <a href="https://www.osradar.com/tag/mysql/">MariaDB</a> in the segment of open source and community database managers.</p>
<p>One of the main advantages of using PostgreSQL is that it has extensive documentation and supports powerful features. All this in an open-source and free application.</p>
<p>And recently version 12 has been released. If you want to know more about it read our post about it.</p>
<p><a href="https://www.osradar.com/postgresql-12-is-available/" target="_blank" rel="noreferrer noopener" aria-label="PostgreSQL 12.0 is available (opens in a new tab)">PostgreSQL 12.0 is available</a></p>
<p>This new version includes security improvements and interesting new features so it&#8217;s a good idea to install it.</p>
<p>So, let us start.</p>
<h2>Install PostgreSQL on FreeBSD 12</h2>
<p>In this guide, we will use commands that require you to be root. In this case, we will choose a user with privileges to use sudo. In case your user can&#8217;t do it, you can read our post.</p>
<p>How to enable sudo on FreeBSD 12.</p>
<p>If you are already the root user, you can simply remove the word sudo from the following commands.</p>
<p>The first step is to upgrade the system completely. To do this, open your FreeBSD terminal and run the following command:</p>
<pre>:~$ sudo pkg update</pre>
<p>After this, the system will be ready for work.</p>
<p>The goal of this post is to install PostgreSQL 12 on FreeBSD but in the official repositories, we have several versions of PostgeSQL.</p>
<pre>:~$ sudo pkg search ^postgresql |grep -i server
postgresql10-server-10.11      PostgreSQL is the most advanced open-source database available anywhere
postgresql11-server-11.6       PostgreSQL is the most advanced open-source database available anywhere
postgresql12-server-12.1       PostgreSQL is the most advanced open-source database available anywhere
postgresql94-server-9.4.25     PostgreSQL is the most advanced open-source database available anywhere
postgresql95-server-9.5.20     PostgreSQL is the most advanced open-source database available anywhere
postgresql96-server-9.6.16     PostgreSQL is the most advanced open-source database available anywhere</pre>
<p><figure id="attachment_18076" aria-describedby="caption-attachment-18076" style="width: 918px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18076" src="https://www.osradar.com/wp-content/uploads/2020/02/1-3.png" alt="1.- PostgreSQL on the FreeBSD repository" width="918" height="167" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-3.png 918w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-768x140.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-3-696x127.png 696w" sizes="(max-width: 918px) 100vw, 918px" /><figcaption id="caption-attachment-18076" class="wp-caption-text">1.- PostgreSQL on the FreeBSD repository</figcaption></figure></p>
<p>The above command performs a search of the PostgreSQL package repositories but refines the search to server.</p>
<p>As you can see, versions 9.4, 9.5, 9.6,10,11 and 12 are available. Let&#8217;s install the version 12. To do so, run the following:</p>
<pre>:~$ sudo pkg install postgresql12-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	postgresql12-server: 12.1
	icu: 65.1,1
	postgresql12-client: 12.1
	perl5: 5.30.1
	readline: 8.0.1

Number of packages to be installed: 5

The process will require 141 MiB more space.
31 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p><figure id="attachment_18077" aria-describedby="caption-attachment-18077" style="width: 873px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18077" src="https://www.osradar.com/wp-content/uploads/2020/02/2-3.png" alt="2.- Install PostgreSQL on FreeBSD 12" width="873" height="383" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-3.png 873w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-300x132.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-768x337.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-3-696x305.png 696w" sizes="(max-width: 873px) 100vw, 873px" /><figcaption id="caption-attachment-18077" class="wp-caption-text">2.- Install PostgreSQL on FreeBSD 12</figcaption></figure></p>
<p>Then, the installation will start normally.</p>
<p><figure id="attachment_18079" aria-describedby="caption-attachment-18079" style="width: 920px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18079" src="https://www.osradar.com/wp-content/uploads/2020/02/3-3.png" alt="3.- Installation is finished" width="920" height="672" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-3.png 920w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-300x219.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-768x561.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-696x508.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-3-575x420.png 575w" sizes="(max-width: 920px) 100vw, 920px" /><figcaption id="caption-attachment-18079" class="wp-caption-text">3.- Installation is finished</figcaption></figure></p>
<p>Once the installation is complete, the first thing to do is to get PostgreSQL started with the system. This is not mandatory but it is convenient in many cases.</p>
<p>So to do this, edit the <code>/etc/rc.conf</code> file</p>
<pre>:~$ sudo nano /etc/rc.conf</pre>
<p>Now add the following:</p>
<pre>postgresql_enable="YES"</pre>
<p><figure id="attachment_18078" aria-describedby="caption-attachment-18078" style="width: 818px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18078" src="https://www.osradar.com/wp-content/uploads/2020/02/4-2.png" alt="4.- Enabling the PostgreSQL service" width="818" height="174" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-2.png 818w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-768x163.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-2-696x148.png 696w" sizes="(max-width: 818px) 100vw, 818px" /><figcaption id="caption-attachment-18078" class="wp-caption-text">4.- Enabling the PostgreSQL service</figcaption></figure></p>
<p>Save the changes and close the file. In case you don&#8217;t have nano installed, you can do it with the following command:</p>
<pre>:~$ sudo pkg install nano</pre>
<p>Before starting the PostgreSQL service the default database must be initialized. To do this, run the following command:</p>
<pre>:~$ sudo service postgresql initdb
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /var/db/postgres/data12 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... America/Caracas
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /usr/local/bin/pg_ctl -D /var/db/postgres/data12 -l logfile start</pre>
<p><figure id="attachment_18080" aria-describedby="caption-attachment-18080" style="width: 946px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18080" src="https://www.osradar.com/wp-content/uploads/2020/02/5-2.png" alt="5.- Configuring PostgreSQL" width="946" height="515" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-2.png 946w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-2-771x420.png 771w" sizes="(max-width: 946px) 100vw, 946px" /><figcaption id="caption-attachment-18080" class="wp-caption-text">5.- Configuring PostgreSQL</figcaption></figure></p>
<p>And now you can start the PostgreSQL service with the following command:</p>
<pre>:~$ sudo service postgresql start
2020-02-05 14:52:37.731 -04 [869] LOG:  starting PostgreSQL 12.1 on amd64-portbld-freebsd12.0, compiled by FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1), 64-bit
2020-02-05 14:52:37.732 -04 [869] LOG:  listening on IPv6 address "::1", port 5432
2020-02-05 14:52:37.732 -04 [869] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2020-02-05 14:52:37.735 -04 [869] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-02-05 14:52:37.749 -04 [869] LOG:  ending log output to stderr
2020-02-05 14:52:37.749 -04 [869] HINT:  Future log output will go to log destination "syslog".</pre>
<p><figure id="attachment_18081" aria-describedby="caption-attachment-18081" style="width: 946px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18081" src="https://www.osradar.com/wp-content/uploads/2020/02/5-3.png" alt="5.- Starting the service" width="946" height="515" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-3.png 946w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-3-771x420.png 771w" sizes="(max-width: 946px) 100vw, 946px" /><figcaption id="caption-attachment-18081" class="wp-caption-text">5.- Starting the service</figcaption></figure></p>
<p>Finally, access the PostgreSQL console with the following command:</p>
<pre>:~$ sudo -u postgres psql</pre>
<p><figure id="attachment_18082" aria-describedby="caption-attachment-18082" style="width: 812px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18082" src="https://www.osradar.com/wp-content/uploads/2020/02/6-1.png" alt="6.- PostgreSQL properly running on FreeBSD 12" width="812" height="142" srcset="https://www.osradar.com/wp-content/uploads/2020/02/6-1.png 812w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-768x134.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/6-1-696x122.png 696w" sizes="(max-width: 812px) 100vw, 812px" /><figcaption id="caption-attachment-18082" class="wp-caption-text">6.- PostgreSQL properly running on FreeBSD 12</figcaption></figure></p>
<p>As you can see you can already use PostgreSQL 12 on FreeBSD without problems.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is perhaps the best open source database manager and this consideration has not been given away. It has been earned with many jobs and above all with extraordinary performance. Now you know how to install it on FreeBSD 12.</p>
<p>Share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-freebsd-12/">Install PostgreSQL on FreeBSD 12</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>OmniDB a great tool to manage databases</title>
		<link>https://www.osradar.com/omnidb-great-tool-to-manage-database/</link>
					<comments>https://www.osradar.com/omnidb-great-tool-to-manage-database/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 03 Feb 2020 00:38:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17733</guid>

					<description><![CDATA[<p>In this post, we will talk to you about OmniDB, a great tool to manage databases. The best thing is that it&#8217;s light and very efficient when you start working. OmniDB is an open-source tool that makes it easy for us to manage SQL databases. It currently supports PostgreSQL, MySQL, MariaDB, and Oracle. However, you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/omnidb-great-tool-to-manage-database/">OmniDB a great tool to manage databases</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this post,<strong> we will talk to you about OmniDB, a great tool to manage databases</strong>. The best thing is that it&#8217;s light and very efficient when you start working.</p>



<p>OmniDB is an open-source tool that makes it easy for us to manage SQL databases. It currently supports <a href="https://www.osradar.com/tag/postgresql" target="_blank" rel="noreferrer noopener" aria-label="PostgreSQL (opens in a new tab)">PostgreSQL</a>, <a href="https://www.osradar.com/tag/mysql" target="_blank" rel="noreferrer noopener" aria-label="MySQL (opens in a new tab)">MySQL</a>, <a href="https://www.osradar.com/tag/mariadb" target="_blank" rel="noreferrer noopener" aria-label="MariaDB (opens in a new tab)">MariaDB</a>, and Oracle. However, you won&#8217;t be stuck with them, because they are already working on supporting <a href="https://www.osradar.com/install-firebird-ubuntu-18-04/" target="_blank" rel="noreferrer noopener" aria-label="Firebird (opens in a new tab)">Firebird</a>, <a href="https://www.osradar.com/tag/sqlite" target="_blank" rel="noreferrer noopener" aria-label="SQLite (opens in a new tab)">SQLite</a>, SQL Server, and IBM DB2. This gives us an idea of how ambitious the project is.</p>



<p>The tool has two installation modes. The first is a desktop application that can be installed on Linux, with DEB and RPM installers.</p>



<p>Besides it, OmniDB has an installer that we can install in a server and be used through a web interface like PHPMyAdmin. This can be very practical in some cases.</p>



<p>Some of the main features of this application are the following:</p>



<ul><li><strong>Encryption of all data</strong>. Making the connection always secure.</li><li><strong>Auto-completion of SQL sentences</strong>. Making the use of SQL language quite fast.</li><li>Responsive and <strong>web-based interface. </strong></li><li><strong>Cross-platform</strong>. Which will make us have no problems in installing it in different work environments.</li></ul>



<p>So let&#8217;s install it and have a look at it.</p>



<h2>Getting OmniDB the tool to manage databases</h2>



<p>First, go to the download section on the application website. There select the package according to the distribution you use. In this case, I installed it on a computer with Linux Mint 19 / Ubuntu 18.04. So I downloaded the DEB package.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="https://www.osradar.com/wp-content/uploads/2020/01/0-1024x527.png" alt="Downloading OmniDB " class="wp-image-17756" srcset="https://www.osradar.com/wp-content/uploads/2020/01/0-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/0-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/0-768x396.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/0-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/0-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/0-815x420.png 815w, https://www.osradar.com/wp-content/uploads/2020/01/0.png 1128w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Downloading OmniDB </figcaption></figure>



<p>Then install the downloaded package. In my case when using Ubuntu or Linux Mint, I ran the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo dpkg -i [package_name]</pre>



<p>Of course, replace package_name with the name and path of the package. The name can vary according to the version number.</p>



<p>Then you can run it from the main menu without problems.</p>



<h2>Using OmniDB</h2>



<p>The first time you run the application it will look pretty basic and clean. Of course, it&#8217;s because we don&#8217;t have any connections set up.</p>



<p>To make a new connection click on the <em>Connections</em> button. There you will see the following image.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/1-18-1024x576.png" alt="1.- The connections screen" class="wp-image-17757" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-18-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-18-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-18-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-18-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-18-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-18-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/1-18.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- The connections screen</figcaption></figure>



<p>Then click on the <em>New Connection</em> button. There the following screen will be displayed.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/2-17-1024x576.png" alt="2.- Creating a new connection" class="wp-image-17758" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/2-17-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/2-17.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Creating a new connection</figcaption></figure>



<p>In the <em>Technology</em> field, you have to select which database manager you want to connect to. And so in each field, you have to write the different credentials and data. Next, press the save data button to save the credentials.</p>



<p>At the end of the list of fields (right side), you will have the buttons to delete a connection, test connection, and use connection. </p>



<p>Once you activate the connection, this is how the application will look.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/3-16-1024x576.png" alt="3.- Manage databases with omniDB" class="wp-image-17759" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-16-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-16-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-16-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-16-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-16-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/3-16.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Manage databases with omniDB</figcaption></figure>



<p>On the left side, you can see the active connection. In this case only one, but you can work with several simultaneously.</p>



<p>As we can also see, everything is in place. There is a space reserved to show the data, as well as to make sentences.</p>



<p>For example, I will use the sentence editor to create a new database. </p>



<p>I just have to type the command and click the run button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/4-14-1024x576.png" alt="4.- Using OmniDB on Linux" class="wp-image-17760" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-14-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-14-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-14-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-14-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/4-14.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Using OmniDB on Linux</figcaption></figure>



<p>You can then create a table graphically or using an SQL template. I have found this to be phenomenal, especially in educational contexts.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/5-11-1024x576.png" alt="5.- Creating  a new table with OmniDB" class="wp-image-17763" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-11-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-11-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-11-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/5-11-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/5-11.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Creating  a new table with OmniDB</figcaption></figure>



<p>Finally, this is how the data would be presented if a table had it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="https://www.osradar.com/wp-content/uploads/2020/01/6-9-1024x576.png" alt="6.- Showing data on OnmiDB" class="wp-image-17765" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/6-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/6-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/6-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/6-9-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2020/01/6-9.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Showing data on OnmiDB</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>OmniDB is emerging as a serious and reliable alternative for database management on many systems. It is quite efficient and robust. </p>



<p>On the other hand, the graphical interface can be improved not by the appearance but by the clarity of the options. Anyway, it can be managed in a few minutes.</p>



<p>Please share this post and join our <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="Telegram channel. (opens in a new tab)">Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/omnidb-great-tool-to-manage-database/">OmniDB a great tool to manage databases</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/omnidb-great-tool-to-manage-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
