<?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>Ubuntu 16.04 &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/ubuntu-16-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 26 Apr 2018 19:23:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>PostgreSQL: Move Main Data Directory in Linux (Ubuntu 16.4)</title>
		<link>https://www.dbrnd.com/2018/04/postgresql-move-main-data-directory-in-linux-ubuntu-16-4/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 27 Apr 2018 16:16:26 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[data directory]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[move data]]></category>
		<category><![CDATA[move directory]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7004</guid>

					<description><![CDATA[In this post, I am sharing complete steps for moving main PostgreSQL data directory to any new location in Linux. When we install PostgreSQL on Linux operating system, by default it stores in “/var/lib/postgresql/[version]/data/” Always best practice is to store database data on the separate drive instead of the system drives. Check the current data [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&amp;linkname=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-move-main-data-directory-in-linux-ubuntu-16-4%2F&#038;title=PostgreSQL%3A%20Move%20Main%20Data%20Directory%20in%20Linux%20%28Ubuntu%2016.4%29" data-a2a-url="https://www.dbrnd.com/2018/04/postgresql-move-main-data-directory-in-linux-ubuntu-16-4/" data-a2a-title="PostgreSQL: Move Main Data Directory in Linux (Ubuntu 16.4)"></a></p><p>In this post, I am sharing complete steps for moving main PostgreSQL data directory to any new location in Linux.</p>
<p>When we install PostgreSQL on Linux operating system, by default it stores in “/var/lib/postgresql/[version]/data/”</p>
<p>Always best practice is to store database data on the separate drive instead of the system drives.</p>
<p><strong>Check the current data directory:</strong></p>
<pre class="crayon-plain-tag">postgres=# SHOW data_directory;

        data_directory
------------------------------
 /var/lib/postgresql/9.6/main</pre> </p>
<p><strong>Stop the PostgreSQL Service:</strong></p>
<pre class="crayon-plain-tag">sudo systemctl stop postgresql</pre> </p>
<p><strong>Create a new directory:</strong></p>
<pre class="crayon-plain-tag">mkdir postgres_data_dir</pre> </p>
<p><strong>Give directory ownership to your Linux user:</strong></p>
<pre class="crayon-plain-tag">chown user_name postgres_data_dir</pre> </p>
<p><strong>Move existing PostgreSQL data/floder to the new location:</strong></p>
<pre class="crayon-plain-tag">sudo rsync -av /var/lib/postgresql /test/postgres_data_dir/</pre> </p>
<p><strong>Move old folder to the backup folder:</strong></p>
<pre class="crayon-plain-tag">sudo mv /var/lib/postgresql/9.6/main /tmp/pg_backup</pre> </p>
<p><strong>Change data folder in postgresql.conf file:</strong></p>
<pre class="crayon-plain-tag">data_directory = '/test/postgres_data_dir/postgresql/9.6/main'</pre> </p>
<p><strong>Start the service of PostgreSQL:</strong></p>
<pre class="crayon-plain-tag">sudo systemctl start postgresql</pre> </p>
<p><strong>Now check the data directory:</strong></p>
<pre class="crayon-plain-tag">postgres=# SHOW data_directory; 

 		  data_directory
--------------------------------------------
/test/postgres_data_dir/postgresql/9.6/main</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL: Install MySQL Tuner to get Performance Metrice in Ubuntu 16.04</title>
		<link>https://www.dbrnd.com/2017/08/mysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04/</link>
					<comments>https://www.dbrnd.com/2017/08/mysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 02 Aug 2017 16:16:24 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[MySQL Tuner]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5737</guid>

					<description><![CDATA[In this post, I am showing the installation process of MySQL Tuner in Ubuntu 16.04. MySQL Tuner is a useful tool that will connect to a running MySQL instance and offer suggestions for how it can be configured for your workload. You can use this tool for running production server as well, and it will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fmysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04%2F&#038;title=MySQL%3A%20Install%20MySQL%20Tuner%20to%20get%20Performance%20Metrice%20in%20Ubuntu%2016.04" data-a2a-url="https://www.dbrnd.com/2017/08/mysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04/" data-a2a-title="MySQL: Install MySQL Tuner to get Performance Metrice in Ubuntu 16.04"></a></p><p>In this post, I am showing the installation process of MySQL Tuner in Ubuntu 16.04.<br />
MySQL Tuner is a useful tool that will connect to a running MySQL instance and offer suggestions for how it can be configured for your workload.</p>
<blockquote><p>You can use this tool for running production server as well, and it will give you different types of Performance Metrics and Server statistics like about the Storage, Security, Performance Parameters, Cache Parameters, InnoDB Settings, MyISAM Settings and more. </p></blockquote>
<p><strong>Install MySQL Tuner in Ubuntu 16.04:</strong></p>
<pre class="crayon-plain-tag">sudo apt-get install mysqltuner</pre> </p>
<p><strong>Execute MySQL Tuner:</strong></p>
<pre class="crayon-plain-tag">mysqltuner</pre> </p>
<p>Here, I am also sharing the sample result of my test server on which I installed and executed MySQL Tuner. </p>
<pre class="crayon-plain-tag">-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in InnoDB tables: 16K (Tables: 1)
[OK] Total fragmented tables: 0

-------- Security Recommendations  -------------------------------------------
[OK] There is no anonymous account in all database users
ERROR 1054 (42S22) at line 1: Unknown column 'password' in 'where clause'
[OK] All database users have passwords assigned
ERROR 1054 (42S22) at line 1: Unknown column 'password' in 'where clause'

-------- Performance Metrics -------------------------------------------------
[--] Up for: 4d 17h 35m 56s (26 q [0.000 qps], 32 conn, TX: 21K, RX: 5K)
[--] Reads / Writes: 100% / 0%
[--] Binary logging is disabled
[--] Total buffers: 192.0M global + 1.1M per thread (151 max threads)
[OK] Maximum reached memory usage: 194.1M (19.60% of installed RAM)
[OK] Maximum possible memory usage: 352.4M (35.58% of installed RAM)
[OK] Slow queries: 0% (0/26)
[OK] Highest usage of available connections: 1% (2/151)
[!!] Aborted connections: 43.75%  (14/32)
[!!] Query cache is disabled
[OK] Temporary tables created on disk: 15% (10 on disk / 64 total)
[OK] Thread cache hit rate: 93% (2 created / 32 connections)
[OK] Table cache hit rate: 25% (28 open / 109 opened)
[OK] Open file limit used: 0% (6/1K)
[OK] Table locks acquired immediately: 100% (100 immediate / 100 locks)

-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 18.2% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/43.0K
[!!] Read Key buffer hit rate: 50.0% (6 cached / 3 reads)

-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[OK] InnoDB buffer pool / data size: 128.0M/16.0K
[OK] InnoDB buffer pool instances: 1
[!!] InnoDB Used buffer: 3.55% (291 used/ 8191 total)
[!!] InnoDB Read buffer efficiency: 81.34% (1120 hits/ 1377 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 2 writes)

-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.

-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/08/mysql-install-mysql-tuner-to-get-performance-metrice-in-ubuntu-16-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>PostgreSQL: Install pgAdmin 4 Desktop Mode in Ubuntu 16.04</title>
		<link>https://www.dbrnd.com/2017/07/postgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04/</link>
					<comments>https://www.dbrnd.com/2017/07/postgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 27 Jul 2017 16:16:37 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pgadmin 4]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5708</guid>

					<description><![CDATA[<div><img width="458" height="166" src="https://www.dbrnd.com/wp-content/uploads/2017/07/pgadmin4.png" class="attachment-post-image size-post-image wp-post-image" alt="pgadmin4" decoding="async" fetchpriority="high" /></div>PostgreSQL recently launched the new pgAdmin 4 tool to access the PostgreSQL Database Server. In this post, I am sharing steps to install pgAdmin 4 desktop mode in Ubuntu 16.04. First, create a virtual environment: [crayon-6aaad74b23590751015816/] Create pgadmin4 virtual environment: [crayon-6aaad74b23593277574691/] Now, go to pgadmin4 and activate it: [crayon-6aaad74b23594680541319/] Download the pgadmin4: [crayon-6aaad74b23595259866607/] Just check [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="458" height="166" src="https://www.dbrnd.com/wp-content/uploads/2017/07/pgadmin4.png" class="attachment-post-image size-post-image wp-post-image" alt="pgadmin4" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fpostgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04%2F&#038;title=PostgreSQL%3A%20Install%20pgAdmin%204%20Desktop%20Mode%20in%20Ubuntu%2016.04" data-a2a-url="https://www.dbrnd.com/2017/07/postgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04/" data-a2a-title="PostgreSQL: Install pgAdmin 4 Desktop Mode in Ubuntu 16.04"></a></p><p>PostgreSQL recently launched the new pgAdmin 4 tool to access the PostgreSQL Database Server.<br />
In this post, I am sharing steps to install pgAdmin 4 desktop mode in Ubuntu 16.04.</p>
<p><strong>First, create a virtual environment:</strong><br />
<pre class="crayon-plain-tag">sudo apt-get install virtualenv python-pip libpq-dev</pre>
<p><strong>Create pgadmin4 virtual environment:</strong><br />
<pre class="crayon-plain-tag">cd
virtualenv pgadmin4</pre>
<p><strong>Now, go to pgadmin4 and activate it:</strong><br />
<pre class="crayon-plain-tag">cd pgadmin4
source bin/activate</pre>
<p><strong>Download the pgadmin4:</strong><br />
<pre class="crayon-plain-tag">wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl</pre>
<p><strong>Just check the pgadmin4:</strong><br />
<pre class="crayon-plain-tag">ls -ltr
 
postgres@ip-172-31-27-19:~/pgadmin4$ ls -ltr
total 24
drwxrwxr-x 3 postgres postgres 4096 Jul 18 20:07 lib
drwxrwxr-x 2 postgres postgres 4096 Jul 18 20:07 include
drwxrwxr-x 3 postgres postgres 4096 Jul 18 20:07 share
drwxrwxr-x 2 postgres postgres 4096 Jul 18 20:07 local
-rw-rw-r-- 1 postgres postgres   60 Jul 18 20:07 pip-selfcheck.json
drwxrwxr-x 2 postgres postgres 4096 Jul 18 20:07 bin</pre>
<p><strong>Now install pgadmin4:</strong><br />
<pre class="crayon-plain-tag">pip install pgadmin4-1.4-py2.py3-none-any.whl</pre>
<p><strong>Do activate:</strong><br />
<pre class="crayon-plain-tag">cd ~/pgadmin4
source bin/activate</pre>
<p><strong>Execute require python script:</strong><br />
<pre class="crayon-plain-tag">python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py</pre>
<p><strong>Check the output:</strong><br />
<pre class="crayon-plain-tag">pgAdmin 4 - Application Initialisation
======================================
The configuration database - '/var/lib/postgresql/.pgadmin/pgadmin4.db' does not exist.
Entering initial setup mode...
NOTE: Configuring authentication for SERVER mode.
 
Enter the email address and password to use for the initial pgAdmin user account:
 
Email address: anveshpatel88@gmail.com
Password:
Retype password:
Password must be at least 6 characters. Please try again.
Password:
Retype password:
 
The configuration database has been created at /var/lib/postgresql/.pgadmin/pgadmin4.db
Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.</pre>
<p><strong>Access pgadmin4 in a browser:</strong><br />
<pre class="crayon-plain-tag">http://localhost:5050</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/07/postgresql-install-pgadmin-4-desktop-mode-in-ubuntu-16-04/feed/</wfw:commentRss>
			<slash:comments>21</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL: How to Install MySQL 5.7 on Ubuntu 16.04?</title>
		<link>https://www.dbrnd.com/2017/07/mysql-how-to-install-mysql-5-7-on-ubuntu-16-04/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 23 Jul 2017 16:16:52 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[MySQL 5.7]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5678</guid>

					<description><![CDATA[<div><img width="679" height="382" src="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-679x382.jpg" class="attachment-post-image size-post-image wp-post-image" alt="MySQL" decoding="async" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-679x382.jpg 679w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-1030x579.jpg 1030w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-850x478.jpg 850w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL.jpg 1280w" sizes="(max-width: 679px) 100vw, 679px" /></div>In this post, I am sharing primary steps to install MySQL 5.7 on Ubuntu 16.04. Please follow the below steps, and get ready with MySQL 5.7 in few minutes. Step 1: Update the server package [crayon-6aaad74b2409f581879939/] Step 2: Install latest MySQL Server from updated package [crayon-6aaad74b240a1810063073/] Step 3: Ask for Root user password, so enter [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="679" height="382" src="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-679x382.jpg" class="attachment-post-image size-post-image wp-post-image" alt="MySQL" decoding="async" loading="lazy" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-679x382.jpg 679w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-1030x579.jpg 1030w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL-850x478.jpg 850w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQL.jpg 1280w" sizes="auto, (max-width: 679px) 100vw, 679px" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&amp;linkname=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F07%2Fmysql-how-to-install-mysql-5-7-on-ubuntu-16-04%2F&#038;title=MySQL%3A%20How%20to%20Install%20MySQL%205.7%20on%20Ubuntu%2016.04%3F" data-a2a-url="https://www.dbrnd.com/2017/07/mysql-how-to-install-mysql-5-7-on-ubuntu-16-04/" data-a2a-title="MySQL: How to Install MySQL 5.7 on Ubuntu 16.04?"></a></p><p>In this post, I am sharing primary steps to install MySQL 5.7 on Ubuntu 16.04.<br />
Please follow the below steps, and get ready with MySQL 5.7 in few minutes.</p>
<p><strong>Step 1: Update the server package</strong></p><pre class="crayon-plain-tag">sudo apt-get update</pre><p>
<strong>Step 2: Install latest MySQL Server from updated package</strong></p><pre class="crayon-plain-tag">sudo apt-get install mysql-server</pre><p>
<strong>Step 3: Ask for Root user password, so enter your Root password and press OK</strong></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5682" src="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxPassword.png" alt="MySQL Linux Password" width="1201" height="307" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxPassword.png 1201w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxPassword-1030x263.png 1030w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxPassword-850x217.png 850w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxPassword-679x174.png 679w" sizes="auto, (max-width: 1201px) 100vw, 1201px" /></p>
<p><strong>Step 4: Make sure about default MySQL Security Options</strong></p><pre class="crayon-plain-tag">sudo mysql_secure_installation</pre><p>
<strong>For testing, I passed below options:</strong></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5683" src="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxSecurity.png" alt="MySQL Linux Security" width="863" height="824" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxSecurity.png 863w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxSecurity-850x812.png 850w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLLinuxSecurity-679x648.png 679w" sizes="auto, (max-width: 863px) 100vw, 863px" /></p>
<p><strong>Step 5: Check the MySQL Service Status</strong></p><pre class="crayon-plain-tag">systemctl status mysql.service</pre><p>
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-5684" src="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLServiceStatus.png" alt="MySQL Service Status" width="866" height="205" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLServiceStatus.png 866w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLServiceStatus-850x201.png 850w, https://www.dbrnd.com/wp-content/uploads/2017/07/MySQLServiceStatus-679x161.png 679w" sizes="auto, (max-width: 866px) 100vw, 866px" /></p>
<p><strong>Step 6: Connect MySQL using root user</strong></p><pre class="crayon-plain-tag">mysql -u root -p</pre><p>
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-5685" src="https://www.dbrnd.com/wp-content/uploads/2017/07/ConnectMySQLRoot.png" alt="Connect MySQL Root" width="792" height="306" srcset="https://www.dbrnd.com/wp-content/uploads/2017/07/ConnectMySQLRoot.png 792w, https://www.dbrnd.com/wp-content/uploads/2017/07/ConnectMySQLRoot-679x262.png 679w" sizes="auto, (max-width: 792px) 100vw, 792px" /></p>
<p><strong>Step 7: Final &#8211; Check the version details</strong><br />
<pre class="crayon-plain-tag">mysql&gt; select version();
+-------------------------+
| version()               |
+-------------------------+
| 5.7.18-0ubuntu0.16.04.1 |
+-------------------------+</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PostgreSQL: How to Install PostgreSQL 9.6 on Ubuntu 16.04?</title>
		<link>https://www.dbrnd.com/2017/01/postgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04/</link>
					<comments>https://www.dbrnd.com/2017/01/postgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 15 Jan 2017 12:19:45 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL 9.6]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[psql]]></category>
		<category><![CDATA[su postgres]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4326</guid>

					<description><![CDATA[&#160; PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. &#160; I am going to share few steps to install PostgreSQL 9.6 on Ubuntu 16.04. First, check the version [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fpostgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04%2F&#038;title=PostgreSQL%3A%20How%20to%20Install%20PostgreSQL%209.6%20on%20Ubuntu%2016.04%3F" data-a2a-url="https://www.dbrnd.com/2017/01/postgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04/" data-a2a-title="PostgreSQL: How to Install PostgreSQL 9.6 on Ubuntu 16.04?"></a></p><p><a href="https://www.dbrnd.com/wp-content/uploads/2016/04/elephant-kruger.jpg" rel="attachment wp-att-2263"><img loading="lazy" decoding="async" class="alignleft wp-image-2263 size-medium" title="PostgreSQL Elephant" src="https://www.dbrnd.com/wp-content/uploads/2016/04/elephant-kruger-300x218.jpg" alt="PostgreSQL Elephant" width="300" height="218" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/elephant-kruger-300x218.jpg 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/elephant-kruger-150x109.jpg 150w, https://www.dbrnd.com/wp-content/uploads/2016/04/elephant-kruger.jpg 622w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>&nbsp;</p>
<p><em><a href="http://www.postgresql.org/about/" target="_blank">PostgreSQL is a powerful,</a> open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.</em><br />
&nbsp;<br />
I am going to share few steps to install PostgreSQL 9.6 on Ubuntu 16.04.</p>
<p><strong>First, check the version of Ubuntu:</strong><br />
<pre class="crayon-plain-tag">lsb_release -sc</pre>
<strong>You need to add the latest PostgreSQL repository for the latest version, otherwise It will install old version. This is for trusty version.</strong><br />
<pre class="crayon-plain-tag">sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"</pre>
<strong>Update and Install PostgreSQL 9.6:</strong><br />
<pre class="crayon-plain-tag">sudo apt-get update
sudo apt-get install postgresql-9.6</pre>
<strong>Default postgres super user and postgres database is created. You need to set a password for the postgres super user. </strong><br />
<pre class="crayon-plain-tag">ubuntu@:~$ sudo passwd postgres
Enter new UNIX password:****
Retype new UNIX password:****
passwd: password updated successfully</pre>
<strong>If service is not started, you can start the PostgreSQL service. </strong><br />
<pre class="crayon-plain-tag">sudo service postgresql start</pre>
<strong>Connect PostgreSQL server using postgres user:</strong><br />
<pre class="crayon-plain-tag">ubuntu@:~$ su postgres
Password:****</pre>
<strong>Create a sample database:</strong><br />
<pre class="crayon-plain-tag">createdb database_name</pre>
<strong>Connect to that database:</strong><br />
<pre class="crayon-plain-tag">psql -d database_name</pre>
<strong>Create a sample table:</strong><br />
<pre class="crayon-plain-tag">create table Test (rno integer);</pre>
<strong>Exit to database session:</strong><br />
<pre class="crayon-plain-tag">\q</pre>
<strong>Exit to PostgreSQL server:</strong><br />
<pre class="crayon-plain-tag">exit</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/01/postgresql-how-to-install-postgresql-9-6-on-ubuntu-16-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
