<?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>linuxbuddies.com &#187; Mysql</title>
	<atom:link href="http://linuxbuddies.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySql Replication</title>
		<link>http://linuxbuddies.com/2008/12/27/mysql-replication/</link>
		<comments>http://linuxbuddies.com/2008/12/27/mysql-replication/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 01:09:11 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mysql replication]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=244</guid>
		<description><![CDATA[Mysql Replication is used to get a mirror copy of master server to slave. All changes made in server is updated on slave. This can be achieved by the following steps. one thing to be notify is the master and salvemay contain the same version of mysql.
  changes in master ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-245" title="replication" src="http://linuxbuddies.com/wp-content/uploads/2008/12/replication-150x150.png" alt="replication" width="150" height="150" />Mysql Replication is used to get a mirror copy of master server to slave. All changes made in server is updated on slave. This can be achieved by the following steps. one thing to be notify is the master and salvemay contain the same version of mysql.</p>
<p><span> <span style="text-decoration: underline;"><span style="text-decoration: underline;"> </span>changes in master</span> </span></p>
<blockquote><p><span><span>edit /etc/my.cnf<br />
  [mysqld]<br />
  log-bin = mysql-bin<br />
  server-id = 1<br />
  restart the mysql service</span></span></p></blockquote>
<p><span><span><span>enter the following commands in mysql<br />
</span></span></span></p>
<blockquote><p><span><span><span><span>grant all on *.* to user@slaveip identified by &#8216;userpassword&#8217; with grant option;<br />
     grant replication slave on *.* to &#8216;username&#8217;@masterip identified by &#8216;userpassword&#8217;;<br />
     show master status;</span></span></span></span></p></blockquote>
<p><span><span><span><span><span>   <span style="text-decoration: underline;"><strong> </strong></span><span style="text-decoration: underline;"><span style="text-decoration: none;">changes in slave </span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span>vi /etc/my.cnf<br />
[mysqld]<br />
  log-bin = mysql-bin<br />
  server-id = 2<br />
  restart the mysql service </span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span>enter the following commands in mysql</span></span></span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span>grant all on *.* to username@localhost identified by &#8216;userpassword&#8217;;<br />
     change master to master_host=&#8217;server ip&#8217;;<br />
     change master to master_user=&#8217;username&#8217;;         <br />
     change master to master_password=&#8217;userpassword&#8217;;               <br />
     change master to master_log_file=&#8217;mysql-bin&#8217;;     <br />
     change master to master_log_pos=561;  (by command show master status;  in master )        </span></span></span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span>to update data from master by using the command </span></span></span></span></span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span><span>load data from master;</span></span></span></span></span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span><span><br />
</span></span></span></span></span></span></span></span></span></span></span></span></p>
<p><span><span><br />
</span></span></p>
<p><span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/27/mysql-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grant privileges to Local &amp; Remote MySQL Users</title>
		<link>http://linuxbuddies.com/2008/12/21/grant-privileges-to-local-remote-mysql-users/</link>
		<comments>http://linuxbuddies.com/2008/12/21/grant-privileges-to-local-remote-mysql-users/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 07:19:45 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[grant privileges]]></category>
		<category><![CDATA[local mysql]]></category>
		<category><![CDATA[remote mysql]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=328</guid>
		<description><![CDATA[
 
Login to mysql shell and key in :


For Local users
 
mysql&#62; grant all on database.* to username@’localhost’ identified by ’password’;
mysql&#62; flush privileges;
 
Verify the connection by executing the command from bash prompt: 
 
mysql -u username -p databasename
 
For remote users :
 
mysql&#62; grant all on database.* to username@’%’ identified by ’password’;
mysql&#62; flush privileges;
 
Verify the connection ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-329" title="mysql1" src="http://linuxbuddies.com/wp-content/uploads/2009/01/mysql1-150x150.jpg" alt="mysql1" width="150" height="150" /></p>
<p> </p>
<p><strong>Login to mysql shell and key in :</strong></p>
<p><strong><br />
</strong></p>
<p><strong>For Local users</strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">mysql&gt; grant all on database.* to username@’localhost’ identified by ’password’;<br />
mysql&gt; flush privileges;</span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong>Verify the connection by executing the command from bash prompt: </strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">mysql -u username -p databasename</span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong>For remote users :</strong></span></strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">mysql&gt; grant all on database.* to username@’%’ identified by ’password’;<br />
mysql&gt; flush privileges;</span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong>Verify the connection by executing the command from bash prompt. </strong></p>
<p style="padding-left: 30px; "> </p>
<p style="padding-left: 30px; ">mysql -u username -p -h hostname databasename</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/21/grant-privileges-to-local-remote-mysql-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
