<?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>remote &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/remote/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>Fri, 29 Sep 2017 06:18:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>MySQL: Create FEDERATED Table to SELECT data from another server (Part 3/4)</title>
		<link>https://www.dbrnd.com/2016/01/mysql-create-federated-table-to-select-data-from-another-server-part-3/</link>
					<comments>https://www.dbrnd.com/2016/01/mysql-create-federated-table-to-select-data-from-another-server-part-3/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 31 Jan 2016 19:42:02 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[FEDERATED Engine]]></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 Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[remote]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1433</guid>

					<description><![CDATA[In the previous post, we have seen a basic theory and configuration of FEDERATED table. In this post, I am going to create a FEDERATED table which is used to SELECT data from another MySQL Server. How to create FEDERATED Tables? Assume that we have two running servers, either both on the same host or [&#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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&amp;linkname=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%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%2F2016%2F01%2Fmysql-create-federated-table-to-select-data-from-another-server-part-3%2F&#038;title=MySQL%3A%20Create%20FEDERATED%20Table%20to%20SELECT%20data%20from%20another%20server%20%28Part%203%2F4%29" data-a2a-url="https://www.dbrnd.com/2016/01/mysql-create-federated-table-to-select-data-from-another-server-part-3/" data-a2a-title="MySQL: Create FEDERATED Table to SELECT data from another server (Part 3/4)"></a></p><p>In the previous post, we have seen a basic theory and configuration of FEDERATED table. In this post, I am going to create a FEDERATED table which is used to SELECT data from another MySQL Server.</p>
<p><strong>How to create FEDERATED Tables?</strong></p>
<p>Assume that we have two running servers, either both on the same host or different hosts.</p>
<blockquote><p><strong>For example:</strong></p>
<p>Server &#8211; A108 (Remote MySQL Server)<br />
Server &#8211; B108 (Local MySQL Server)</p></blockquote>
<blockquote><p>We need to execute the SELECT command from Server B108 and fetching data from Server A108.<br />
Here, Server A108 is a remote server and Server B108 is a local server. </p></blockquote>
<p><strong>Now create a sample table in Server A108.</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_RemoteTable 
(
    ID integer
    ,Name VARCHAR(255)
) 
ENGINE=InnoDB;</pre> </p>
<p>Now, create a FEDERATED table in Server B108 to SELECT data from Server A108.<br />
You have to specify FEDERATED engine with remote CONNECTION information. </p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_RemoteTable 
(
    ID integer
    ,Name VARCHAR(255)
) 
ENGINE=FEDERATED
CONNECTION='mysql://root:root@localhost:3306/B108/tbl_RemoteTable';</pre> </p>
<p>As you can see, I created FEDERATED table into Local Server B108 using the connection information of Remote Server A108.</p>
<p>You can access this table like any other table, and if any data insert or delete in remote Table, it automatically updates here because this is a virtual table.<br />
<strong><br />
Below are different format of connection strings:</strong></p>
<pre class="crayon-plain-tag">CONNECTION='mysql://username:password@hostname:port/database/tablename'
CONNECTION='mysql://username@hostname/database/tablename'
CONNECTION='mysql://username:password@hostname/database/tablename'</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/mysql-create-federated-table-to-select-data-from-another-server-part-3/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL: ERROR 1130: Host is not allowed to connect to this MySQL server</title>
		<link>https://www.dbrnd.com/2016/01/mysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server/</link>
					<comments>https://www.dbrnd.com/2016/01/mysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 11 Jan 2016 15:23:11 +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[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 Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[remote]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1267</guid>

					<description><![CDATA[MySQL &#8211; ERROR 1130: Host is not allowed to connect to this MySQL server. I got the above error when one of my client machines were accessing MySQL Server. By default, MySQL does not allow the remote client to connect the MySQL database server. If you want to allow your client to access your MySQL [&#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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&amp;linkname=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" 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%2F2016%2F01%2Fmysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server%2F&#038;title=MySQL%3A%20ERROR%201130%3A%20Host%20is%20not%20allowed%20to%20connect%20to%20this%20MySQL%20server" data-a2a-url="https://www.dbrnd.com/2016/01/mysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server/" data-a2a-title="MySQL: ERROR 1130: Host is not allowed to connect to this MySQL server"></a></p><p><strong>MySQL &#8211; ERROR 1130: Host is not allowed to connect to this MySQL server.</strong></p>
<p>I got the above error when one of my client machines were accessing MySQL Server.<br />
By default, MySQL does not allow the remote client to connect the MySQL database server.</p>
<p>If you want to allow your client to access your MySQL database server, you should give access permission to that IP-Address of the client.</p>
<blockquote><p><strong>If you want to give permission for 10.0.0.12 ip address, please execute below command.</strong></p></blockquote>
<pre class="crayon-plain-tag">root# mysql -u root -p
password:

mysql&gt; use mydb;

mysql&gt; GRANT ALL ON *.* to root@'10.0.0.12' IDENTIFIED BY 'root_password'; 

mysql&gt; FLUSH PRIVILEGES;</pre> </p>
<blockquote><p><strong>If you want to allow user from any network, you should perform the below steps.</strong></p></blockquote>
<p><strong>Change MySQL config file:</strong></p>
<pre class="crayon-plain-tag">/etc/mysql/my.cnf</pre> </p>
<p><strong>Comment following lines:</strong></p>
<pre class="crayon-plain-tag">#bind-address           = 127.0.0.1
#skip-networking</pre> </p>
<p>If skip-networking line is not present, you can add it and comment it. </p>
<p><strong>Restart MySQL Server:</strong></p>
<pre class="crayon-plain-tag">root #&gt; mysql restart</pre> </p>
<p><strong>Login in MySQL and change the grant privileges:</strong></p>
<pre class="crayon-plain-tag">mysql&gt; GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root_password';</pre> </p>
<p>Please also make sure that port 3306 is opend which is default port of MySQL Database Server.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/mysql-error-1130-host-is-not-allowed-to-connect-to-this-mysql-server/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>PostgreSQL: How to Allow Remote Connection to Connect Database</title>
		<link>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/</link>
					<comments>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 04 Jan 2016 18:19:00 +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[listen_addresses]]></category>
		<category><![CDATA[pghba.conf]]></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 Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[remote]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1235</guid>

					<description><![CDATA[I installed and configured PostgreSQL in one of our client computers and found the problem of TCP/IP. When a client machine tried to connect the PostgreSQL Server, it got an error like &#8220;psql:could not connect to server:Connection refused&#8221;. If you need to the connect all clients with PostgreSQL server, you should perform the below two [&#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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" 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%2F2016%2F01%2Fpostgresql-how-to-allow-remote-connection-to-connect-database%2F&#038;title=PostgreSQL%3A%20How%20to%20Allow%20Remote%20Connection%20to%20Connect%20Database" data-a2a-url="https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/" data-a2a-title="PostgreSQL: How to Allow Remote Connection to Connect Database"></a></p><p>I installed and configured PostgreSQL in one of our client computers and found the problem of TCP/IP.</p>
<p>When a client machine tried to connect the PostgreSQL Server, it got an error like <strong>&#8220;psql:could not connect to server:Connection refused&#8221;.</strong></p>
<p>If you need to the connect all clients with PostgreSQL server, you should perform the below two actions.</p>
<p><strong>Add client IP-Address ranges into pg_hba.conf :</strong><br />
pg_hba.conf is a configuration file which controls the Client Authentication. This file automatically installed when the data directory is initialized. </p>
<p>Below is a default entry in pghba.conf file. </p>
<pre class="crayon-plain-tag"># IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5</pre> </p>
<p>In our example, we have a client, IP-Address which is &#8220;10.0.0.12&#8221;. If you require connecting this client with PostgreSQL Server, please add below entry in the pghba.conf and after that save the file and restart PostgreSQL Service. </p>
<pre class="crayon-plain-tag">host    all         all         10.0.0.12/24    md5</pre> </p>
<p><strong>Another method is to change listen_addresses parameter in postgresql.conf :</strong></p>
<p>In the PostgreSQL configuration file (postgresql.conf), by default listen address is &#8220;localhost&#8221; like,</p><pre class="crayon-plain-tag">listen_addresses = 'localhost'</pre><p> </p>
<p>Please change this parameter value from &#8216;localhost&#8217; to &#8216;*&#8217; so that all clients can connect from different networks.</p>
<pre class="crayon-plain-tag">listen_addresses = '*'</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/postgresql-how-to-allow-remote-connection-to-connect-database/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
