<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Database Blog</title>
	<atom:link href="http://johnjacobm.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnjacobm.wordpress.com</link>
	<description>Yet another Wordpress weblog</description>
	<lastBuildDate>Mon, 09 Nov 2009 18:45:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='johnjacobm.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d3dc00ba6aa92a7438acd7d947102fbc?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Database Blog</title>
		<link>http://johnjacobm.wordpress.com</link>
	</image>
			<item>
		<title>Replication</title>
		<link>http://johnjacobm.wordpress.com/2008/01/31/replication/</link>
		<comments>http://johnjacobm.wordpress.com/2008/01/31/replication/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 04:18:49 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/?p=103</guid>
		<description><![CDATA[ 
A Master-Slave-Slave Replication in Production 
 
Two new slave servers are added to the Production System. The master server is &#8216;Alpha&#8217; and the new slave servers are &#8216;Beta&#8217; and &#8216;Gamma&#8217;. The environment is Red Hat Enterprise Linux. If the binary logging is not already enabled, we need to enable it on the master server by editing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=103&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="margin-bottom:0;"> </p>
<p style="margin-bottom:0;" lang="en"><span style="color:#339966;"><span style="font-family:Arial, sans-serif;"><span style="font-size:medium;"><strong>A Master-Slave-Slave Replication in Production </strong></span></span></span></p>
<p style="margin-bottom:0;"> </p>
<p style="margin-bottom:0;" lang="en"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Two new slave servers are added to the Production System. The master server is &#8216;Alpha&#8217; and the new slave servers are &#8216;Beta&#8217; and &#8216;Gamma&#8217;. The environment is Red Hat Enterprise Linux. If the binary logging is not already enabled, we need to enable it on the master server by editing the “my.cnf” as shown below. If it is already enabled, find out the current location of the binary logging by using the command: show master status. </span></span></span></p>
<p style="margin-bottom:0;"> </p>
<ol>
<p style="margin-bottom:0;"><span style="color:#3366ff;"><span style="font-family:Arial, sans-serif;"><span style="font-size:small;"><strong>1. Configure the Master Server: Alpha</strong></span></span></span></p>
</ol>
<p style="margin-bottom:0;"> </p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Add the following lines in my.cnf:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">[mysqld]</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">log-bin = alpha-bin</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">server-id = 1</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Restart the server:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"># /etc/init.d/mysql restart</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">See the master status:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; show master status;</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">| File  | Position | Binlog_Do_DB | Binlog_Ignore_DB |</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">|alpha-bin.000028 | 98      |                |                  |</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">1 row in set (0.00 sec)</span></span></span></p>
<p style="margin-bottom:0;margin-left:.25in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">             Create a Replication user:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; create user ‘replicuser’@’alpha.localdomain.com’ identified by ‘replicpass’;</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; GRANT REPLICATION SLAVE ON *.* TO replicuser@&#8221;%&#8221; IDENTIFIED BY &#8216;replicpass&#8217;;</span></span></span></p>
<p style="margin-bottom:0;"> </p>
<p style="margin-bottom:0;margin-left:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"></span></span><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">It is important to note the position of the master log (binary log) exactly shown above. This position is given in the slave servers to point to the location to start the replication. If the position is not specified correctly, the slave server will simply fail to start replication. </span></span></span></p>
<p style="margin-bottom:0;"> </p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#0047ff;"><span style="font-family:Arial, sans-serif;"><span style="font-size:small;"><strong>2. Backup the Master Server</strong></span></span></span></p>
<p style="margin-bottom:0;" lang="en"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">It is safe to take a cold backup on the server by shutting down MySQL on the server and using mysqldump, as shown below:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.5in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="color:#666666;"><span style="font-size:x-small;"><strong>mysqldump –u root –p &#8211;all-databases &gt; backup.sql</strong></span></span><span style="color:#666666;"> </span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="color:#666666;"><span style="font-size:x-small;">It is not online backup. So &#8211;single-transaction, &#8211;flush-logs options on mysqldump are not required. It may take hours to complete, based on the size of your databases. Once it is completed, c</span></span><span style="font-size:x-small;">opy the dump file from Alpha to Beta and Gamma:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.5in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"># scp backup.sql mysqldba@beta.localdomain.com:/var/lib/mysql </span></span></span></p>
<p style="margin-bottom:0;margin-left:.5in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"># scp backup.sql mysqldba@gamma.localdomain.com:/var/lib/mysql</span></span></span></p>
<p style="margin-bottom:0;margin-left:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">where &#8216;mysqldba&#8217; is a Linux user on the slave servers and &#8216;localdomain&#8217; is your domain in which alpha, beta and gamma are servers.</span></span></span></p>
<p style="margin-bottom:0;margin-left:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Restore the databases on Beta and Gamma as shown below:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.5in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"><strong># mysql –u root –p &lt; backup.sql</strong></span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">The restoration used to fail many times because of some inconsistency in the table structure. If it encounters such an error, mysql will not continue and you have not other option but to repeat it all from the beginning. In case it fails during restoration, you must delete the databases already created and then restore it. Safely you may issue a forced restoration too:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.5in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"><strong># mysql –u root –p &#8211;force &lt; backup.sql</strong></span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Once the dumpfile is created on the master server, you may start MySQL on the the master server. If the dumpfile is very large in size, you may want to create different dumpfiles instead of one single large one. I have created three separate dumpfiles by grouping together some large tables from a database like this:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.25in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysqldump -u root -p production hist0 hist1 hist2 hist31 hist32 hist33 hist34 hist41 hist42 hist43 hist44 hist51 hist52 hist53 hist54 hist61 hist62 hist63 hist64 hist71 hist72 hist73 hist74 &gt; productionone.sql</span></span></span></p>
<p style="margin-bottom:0;margin-left:.25in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysqldump -u root -p production chist0 chist1 chist2 chist31 chist32 chist33 chist34 chist41 chist42 chist43 chist44 chist51 chist52 chist53 chist54 chist61 chist62 chist63 chist64 chist71 chist72 chist73 chist74 &gt; productiontwo.sql</span></span></span></p>
<p style="margin-bottom:0;margin-left:.25in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysqldump -u root -p production &#8211;ignore-table=production.hist0 &#8211;ignore-table=production.hist1 &#8211;ignore-table=production.hist2 &#8211;ignore-table=production.hist31 &#8211;ignore-table= hist32 &#8211;ignore-table=hist33 &#8211;ignore-table=hist34 &#8211;ignore-table=hist41 &#8211;ignore-table=hist42 &#8211;ignore-table=hist43 &#8211;ignore-table=hist44 &#8211;ignore-table=hist51 &#8211;ignore-table=hist52 &#8211;ignore-table=hist53 &#8211;ignore-table=hist54 &#8211;ignore-table=hist61 &#8211;ignore-table=hist62 &#8211;ignore-table=hist63 &#8211;ignore-table=hist64 &#8211;ignore-table=hist71 &#8211;ignore-table=hist72 &#8211;ignore-table=hist73 &#8211;ignore-table=hist74 &#8211;ignore-table=chist0 &#8211;ignore-table=chist1 &#8211;ignore-table=chist2 &#8211;ignore-table=chist31 &#8211;ignore-table=chist32 &#8211;ignore-table=chist33 &#8211;ignore-table=chist34 &#8211;ignore-table=chist41 &#8211;ignore-table=chist42 &#8211;ignore-table=chist43 &#8211;ignore-table=chist44 &#8211;ignore-table=chist51 &#8211;ignore-table=chist52 &#8211;ignore-table=chist53 &#8211;ignore-table=chist54 &#8211;ignore-table=chist61 &#8211;ignore-table=chist62 &#8211;ignore-table=chist63 &#8211;ignore-table=chist64 &#8211;ignore-table=chist71 &#8211;ignore-table=chist72 &#8211;ignore-table=chist73 &#8211;ignore-table=chist74 &gt; productionthree.sql</span></span></span></p>
<p style="margin-bottom:0;margin-left:.25in;"> </p>
<ol>
<p style="margin-bottom:0;"><span style="color:#0000ff;"><span style="font-family:Arial, sans-serif;"><span style="font-size:small;"><strong>3. Configure the Slave Server: Beta</strong></span></span></span></p>
</ol>
<p style="margin-bottom:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Add the following lines in my.cnf:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">[mysqld]</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">server-id = 2</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Restart the server:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"># /etc/init.d/mysql restart</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Run the following:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; CHANGE MASTER TO</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_HOST = ‘alpha.localdomain.com’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_USER = ‘replicuser’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_PASSWORD = ‘replicpass’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_LOG_FILE=’alpha-bin.000028’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_LOG_POS=98; </span></span></span></p>
<blockquote>
<blockquote>
<p style="margin-bottom:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; start slave;</span></span></span></p>
</blockquote>
</blockquote>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; show slave status \G</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"> </p>
<ol>
<p style="margin-bottom:0;"><span style="color:#3366ff;"><span style="font-family:Arial, sans-serif;"><span style="font-size:small;"><strong>4. Configure the Slave Server: Gamma</strong></span></span></span></p>
</ol>
<p style="margin-bottom:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Add the following lines in my.cnf:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">[mysqld]</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">server-id = 3</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Restart the server:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;"># /etc/init.d/mysql restart</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Run the following:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; CHANGE MASTER TO</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_HOST = ‘alpha.localdomain.com’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_USER = ‘replicuser’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_PASSWORD = ‘replicpass’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_LOG_FILE=’alpha-bin.000028’,</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">MASTER_LOG_POS=98; </span></span></span></p>
<blockquote>
<blockquote>
<p style="margin-bottom:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; start slave;</span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#666666;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; show slave status \G</span></span></span></p>
</blockquote>
</blockquote>
<p style="margin-bottom:0;margin-left:.79in;"> </p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">We do not want the users to modify the tables in the databases on the slave servers. That means we need to make the databases “read-only”. Also, we do not want the tables in “mysql” database to be replicated to the slave servers. The following two lines are added to the “my.cnf” file on both slave servers.</span></span></span></p>
<blockquote>
<blockquote>
<p style="margin-bottom:0;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">&#8211;read-only</span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">&#8211;replicate-ignore-db=mysql</span></span></span></p>
</blockquote>
</blockquote>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">But in most cases, users want some database to write their intermediate or temporary tables. We can create a database called “sandbox” on each server. Here the users must be given permissions to create tables. Also those users must have the global privilege of &#8217;super&#8217; to do so.</span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Errors can occur on the slave servers if a query was aborted on the master server or a table does not exist on the slave which originally exist on the master. The replication stops by showing the following error. We can choose to execute the query on the slave server, or ignore it if you are sure that this statement can be skipped. At MySQL prompt on the slave server, set global sql_slave_skip_counter=1 and then start slave. </span></span></span></p>
<blockquote>
<blockquote>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Relay_Master_Log_File: alpha-bin.000028</span></span></span></p>
</blockquote>
</blockquote>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Slave_IO_Running: Yes</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Slave_SQL_Running: No</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Do_DB:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Ignore_DB: mysql,mysql</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Do_Table:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Ignore_Table:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Wild_Do_Table:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Replicate_Wild_Ignore_Table:</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Last_Errno: 1053</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Last_Error: Query partially completed on the master (error on master: 1053) and was aborted. There is a chance that your master is inconsistent at this point. If you are sure that your master is ok, run this query manually on the slave and then restart the slave with SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; . Query: &#8216;update liq_all, arbitration.claim_form SET liq_all.arb_date = replace(insertdate,&#8217;-',&#8221;) WHERE db_num=camref&#8217;</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;" lang="en"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">Skip_Counter: 0</span></span></span></p>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">SQL statements will cease being run on the slave (via replication) until the above error is resolved either by executing the query or by skipping the statement. On MySQL prompt, run the following:</span></span></span></p>
<blockquote>
<blockquote>
<p style="margin-bottom:0;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; set global sql_slave_skip_counter=1; </span></span></span></p>
</blockquote>
</blockquote>
<p style="margin-bottom:0;margin-left:.79in;"><span style="color:#4c4c4c;"><span style="font-family:Arial, sans-serif;"><span style="font-size:x-small;">mysql&gt; start slave;</span></span></span></p>
<p style="margin-bottom:0;margin-left:.79in;"> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=103&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2008/01/31/replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
		<item>
		<title>Benchmarking MySQL Server</title>
		<link>http://johnjacobm.wordpress.com/2007/07/09/benchmarking-mysql-server/</link>
		<comments>http://johnjacobm.wordpress.com/2007/07/09/benchmarking-mysql-server/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 22:48:44 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/07/09/benchmarking-mysql-server/</guid>
		<description><![CDATA[

Before proceeding to production on a complex database server, it is always necessary to benchmark your server. There are different tools available for this purpose like that of Todd. 


There is a tool in MySQL itself. Though primitive, it is interesting to try it out. The MySQL Benchmark Tool, sql-bench, is a perl program, which can be found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=98&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;"></span></p>
<blockquote>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;">Before proceeding to production on a complex database server, it is always necessary to benchmark your server. There are different tools available for this purpose like that of Todd. </span></p>
</blockquote>
<blockquote>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;">There is a tool in MySQL itself. Though primitive, it is interesting to try it out. The MySQL Benchmark Tool, sql-bench, is a perl program, which can be found in the folder sql-bench under the MySQL program folder. </span></p>
</blockquote>
<p align="center"><span style="font-size:10pt;line-height:150%;"><span style="font-size:10pt;line-height:150%;"><font color="#3366ff"><strong>Installation of Perl DBD/DBI for MySQL</strong></font></span></span></p>
<blockquote><p><span style="font-size:10pt;line-height:150%;"><span style="font-size:10pt;line-height:150%;"></span></span><span style="font-size:10pt;line-height:150%;"><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">On Windows, you should do the following to install the MySQL DBD module and DBI with ActiveState Perl. </span><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;">Get ActiveState Perl 5.6 or later from </span></span></p>
<blockquote>
<blockquote><p><span style="font-size:10pt;line-height:150%;"><span style="font-size:10pt;line-height:150%;"><a target="_top" href="http://www.activestate.com/Products/ActivePerl/">http://www.activestate.com/Products/ActivePerl/</a> </span></span></p></blockquote>
</blockquote>
<p><span style="font-size:10pt;line-height:150%;"><span style="font-size:10pt;line-height:150%;">and install it. Open a command window. </span><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;">Type ppm at the command prompt. The Perl Package Manager starts as follows:</span><span style="font-size:10pt;line-height:150%;"> </span></span><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"></a></span><span style="font-size:10pt;line-height:150%;"><a href="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" title="perl.jpg"><font face="Times New Roman"></p>
<p style="text-align:center;"><img src="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" alt="perl.jpg" /></p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p></font></a></p>
<blockquote><p><span style="font-size:10pt;line-height:150%;">Here you may add new packages. Add the package DBD-MySQL, the MySQL Driver for Perl Database Interface (DBI). Then add the package DBI also.</span><span style="font-size:10pt;line-height:150%;"> </span></p>
<p><span style="font-size:10pt;line-height:150%;"></span></p></blockquote>
<p align="center"><span><font color="#3366ff"><strong>Start the MySQL Benchmark Tool</strong></font><span style="text-decoration:none;"> </span></span></p>
<blockquote><p><span style="font-size:10pt;line-height:150%;"><span style="text-decoration:none;"></span></span><span style="font-size:10pt;line-height:150%;">At sql-bench directory of MySQL, run the following command:</span><span style="font-size:10pt;line-height:150%;"> </span></p></blockquote>
<blockquote>
<blockquote><p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">Sql-bench:\&gt; perl run-all-tests &#8211; -host {host name} - -user root &#8211; -password {password}</span></p></blockquote>
</blockquote>
<blockquote>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;">See below one of the sample screens it produces on Innodb stress test:</span></p>
</blockquote>
<p><font face="Times New Roman"></p>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;"></span></p>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;"></span></p>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;"></span></p>
<p style="line-height:150%;margin:0;" class="MsoNormal"><span style="font-size:10pt;line-height:150%;"></span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span></font><span style="font-size:10pt;line-height:150%;"></p>
<table border="1" align="left" cellPadding="0" cellSpacing="0" style="border-collapse:collapse;border:medium none;margin:auto 6.75pt;" class="MsoTableGrid">
<tr style="height:128.25pt;">
<td width="590" vAlign="top" style="width:6.15in;height:128.25pt;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;">
<p style="margin:0;" class="MsoNormal"><span style="font-size:10pt;">Testing server &#8216;MySQL 5.0.36sp1 enterprise gpl nt log/&#8217; at 2007-0627 14:15:44</span></p>
<p><span style="font-size:10pt;">Innotest2: MySQL/InnoDB stress test in Perl for FOREIGN keys</span></p>
<p><span style="font-size:10pt;"></span><span style="font-size:10pt;">This is a randomized stress test for concurrent inserts, updates, deletes, commits and rollbacks with foreign keys with the ON DELETE &#8230; clause. The test will generate</span><span style="font-size:10pt;">also a lot of deadlocks, duplicate key errors, and other SQL errors.</span><span style="font-size:10pt;">You should run innotest2, innotest2a, and innotest2b concurrently.</span><span style="font-size:10pt;">The thing to watch is that the server does not crash or does not print to the .err log anything. Currently, due to a buglet in MySQL, warnings about MySQL lock reservations can appear in the .err log. The test will run very long, even several hours. You can kill the perl processes running this test at any time and do CHECK TABLE on tables innotest2a, b, c, d in the &#8216;test&#8217; database.</span><span style="font-size:10pt;"> </span></td>
</tr>
</table>
<p><font face="Times New Roman"><font face="Times New Roman"><span style="font-size:10pt;line-height:150%;"></span></p>
<p></font></font></span></span></p></blockquote>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"><font face="Times New Roman"></p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p style="line-height:150%;margin:0;" class="MsoNormal">&nbsp;</p>
<p></font></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/98/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/98/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=98&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/07/09/benchmarking-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/07/perl.jpg" medium="image">
			<media:title type="html">perl.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>A MySQL Backup Strategy</title>
		<link>http://johnjacobm.wordpress.com/2007/07/07/a-mysql-backup-strategy/</link>
		<comments>http://johnjacobm.wordpress.com/2007/07/07/a-mysql-backup-strategy/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 19:59:17 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/07/07/a-mysql-backup-strategy/</guid>
		<description><![CDATA[The two common tools of Backup in MySQL are the following: 


1.        mysqldump
2.        mysqlhotcopy


If we are using innodb database engine, it is possible to perform online backup with only mysqldump. It is possible for you to use mysqlhotcopy, in case you are using MyISAM database engine. 
Assume that we have scheduled the full database backup daily [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=97&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="Section1"><span style="font-size:10pt;color:black;">The two common tools of Backup in MySQL are the following: </span></p>
<blockquote>
<blockquote>
<p class="Section1"><span style="font-size:10pt;color:black;"></span><span style="font-size:10pt;"><span>1.<span style="font:7pt 'Times New Roman';">        </span></span></span><span style="font-size:10pt;">mysqldump</span></p>
<p class="Section1"><span style="font-size:10pt;"></span><span style="font-size:10pt;"><span>2.<span style="font:7pt 'Times New Roman';">        </span></span></span><span style="font-size:10pt;">mysqlhotcopy</span></p>
</blockquote>
</blockquote>
<p class="Section1"><span style="font-size:10pt;"></span><span style="font-size:10pt;">If we are using innodb database engine, it is possible to perform online backup with only mysqldump. It is possible for you to use mysqlhotcopy, in case you are using MyISAM database engine. </span></p>
<p class="Section1"><span style="font-size:10pt;"></span><span style="font-size:10pt;line-height:150%;">Assume that we have scheduled the full database backup daily at 3 am. As the database goes into production, we may need to revise this plan. We may still continue to do a full database backup daily. In addition, there could be incremental backups on an hourly basis. </span></p>
<blockquote>
<p class="Section1"><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">C:\Program Files\MySQL\MySQL Server 5.0\bin&gt; mysqldump –u root –p &#8211; - all-databases &#8211; - single-transaction &gt; backup.sql</span></p>
</blockquote>
<p class="Section1"><span style="font-size:10pt;line-height:150%;"></span><br />
<span style="font-size:10pt;line-height:150%;">In order to make the incremental backups, we need to start MySQL server with the option <code>--log-bin</code>. If you have implemented Replication, it creates the binary log. It is stored in, for example, E:\mysqlBinlog, as shown below:</span></p>
<table border="1" cellPadding="0" cellSpacing="0" style="border-collapse:collapse;border:medium none;margin:auto auto auto 5.4pt;" class="MsoTableGrid">
<tr>
<td width="132" vAlign="top" style="width:99pt;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;"><span style="font-size:10pt;">Name</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Size</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Type</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Date Modified</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Attributes</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Mysql-bin.000080</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6,733 KB</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">000080 File</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6/25/2007 2:56PM</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Mysql-bin.000081</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">1,027 KB</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">000081 File</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6/25/2007 3:54 PM</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
</table>
<p><span style="font-size:10pt;line-height:150%;">The last file ‘mysql-bin.000081’ is being updated currently. <span> </span>These binary logs form the incremental backups.<span>  </span>Hence while we conduct a full backup, ensure that the cache is flushed so that a new binary log is created. The full backup plus all the binary logs created after the full backup constitute the data at present. </span></p>
<blockquote><p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">C:\Program Files\MySQL\MySQL Server 5.0\bin&gt; mysqldump –u root –p &#8211; -all-databases &#8211; -single-transaction &#8211; -flush-logs &#8211; -master-data=2 &gt; e:\Backup\2007-06-25_10213136.sql</span><span style="font-size:10pt;line-height:150%;"> </span></p></blockquote>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">It adds the following lines to the file 2007-06-25_10213136.sql, which will be useful at the time of Recovery:</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;">&#8211; Position to start replication or point-in-time recovery from</span><span style="font-size:10pt;"> </span></p>
<p><span style="font-size:10pt;"></span><span style="font-size:10pt;">&#8211; CHANGE MASTER TO MASTER_LOG_FILE=&#8217;mysql-bin.000082&#8242;, MASTER_LOG_POS=98;</span><span style="font-size:10pt;"> </span></p>
<p><span style="font-size:10pt;"></span><span style="font-size:10pt;">The listing in </span><span style="font-size:10pt;">E:\mysqlBinlog currently will be as shown below:</span><span style="font-size:10pt;"> </span></p>
<table border="1" cellPadding="0" cellSpacing="0" style="border-collapse:collapse;border:medium none;margin:auto auto auto 5.4pt;" class="MsoTableGrid">
<tr>
<td width="132" vAlign="top" style="width:99pt;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;"><span style="font-size:10pt;">Name</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Size</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Type</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Date Modified</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Attributes</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">…</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Mysql-bin.000080</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6,733 KB</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">000080 File</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6/25/2007 2:56PM</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Mysql-bin.000081</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">1,949 KB</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">000081 File</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6/25/2007 4:39 PM</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
<tr>
<td width="132" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:99pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">Mysql-bin.000082</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">253 KB</span></td>
<td width="120" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.25in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">000082 File</span></td>
<td width="144" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:1.5in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">6/25/2007 4:54 PM</span></td>
<td width="84" vAlign="top" style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:63pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;"><span style="font-size:10pt;">A</span></td>
</tr>
</table>
<p><span style="font-size:10pt;line-height:150%;">Essentially, </span><span style="font-size:10pt;line-height:150%;">2007-06-25_10213136.sql</span><span style="font-size:10pt;line-height:150%;"> <span>and mysql-bin.000082 together form the most up to date database at any point of time. We may copy this binary file and the later ones to a safe location on every hour.</span></span><span style="font-size:10pt;line-height:150%;">The following is a backup script with name “backup.bat” created on the server in the folder C:\Program Files\MySQL\MySQL Server 5.0\data. It creates backup file once daily at 3 am and stores it in the folder E:\Backup. The script file contains the password of root user. So <em>we need to control access to it</em>.</span></p>
<table border="1" cellPadding="0" cellSpacing="0" style="border-collapse:collapse;border:medium none;margin:auto auto auto 5.4pt;" class="MsoTableGrid">
<tr>
<td width="583" vAlign="top" style="width:437.4pt;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;"><span style="font-size:10pt;line-height:150%;">echo off</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">echo Starting Backup of Databases: </span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">for /f &#8220;tokens=2-4 delims=/ &#8221; %%a in (&#8216;date /t&#8217;) do (set dt=%%c-%%a-%%b)</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">for /f &#8220;tokens=1-4 delims=:.&#8221; %%a in (&#8216;echo %time%&#8217;) do (set tm=%%a%%b%%c%%d)</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">set backupfile=%dt%_%tm%.sql</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">echo Backing up to file: %backupfile%</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">&#8220;C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump&#8221; -u root -p&#8221;password&#8221; &#8211; -all-databases &#8211; -single-transaction &#8211; -flush-logs &#8211; -master-data=2 &gt; e:\Backup\%backupfile% </span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">CD \Program Files\MySQL\MySQL Server 5.0\data</span></p>
<p><span style="font-size:10pt;line-height:150%;"></span><span style="font-size:10pt;line-height:150%;">echo on</span></td>
</tr>
</table>
<p><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;">This script is scheduled to run at 3 am everyday, by Windows Scheduler. </span><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;"> </span><span style="font-size:10pt;line-height:150%;"> </span></p>
<p><span style="font-size:10pt;line-height:150%;font-family:'Times New Roman';"><br />
</span> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/97/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/97/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=97&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/07/07/a-mysql-backup-strategy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL Server Tuning</title>
		<link>http://johnjacobm.wordpress.com/2007/06/29/mysql-server-tuning/</link>
		<comments>http://johnjacobm.wordpress.com/2007/06/29/mysql-server-tuning/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 21:38:47 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/06/29/mysql-server-tuning/</guid>
		<description><![CDATA[MySQL has a lot of parameters to fine tune the server and databases. Many more parameters are there specific to the storage engines you choose. Here are some important MySQL and InnoDB parameters that are identified by using tools such as MySQL Administrator and phpMysqladmin. 



Parameters


Variables


Description




Current Connections





Maximum Allowed
Max_connections
Currently open connections as a percentage of maximum [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=94&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify"><span style="font-size:10pt;">MySQL has a lot of parameters to fine tune the server and databases. Many more parameters are there specific to the storage engines you choose. Here are some important MySQL and InnoDB parameters that are identified by using tools such as MySQL Administrator and phpMysqladmin. </span></p>
<table border="1" cellPadding="0" cellSpacing="0">
<tr>
<td width="156">
<h5><font color="#3366ff">Parameters</font></h5>
</td>
<td width="192">
<h5><font color="#3366ff">Variables</font></h5>
</td>
<td width="228">
<h5><font color="#3366ff">Description</font></h5>
</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Current Connections</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Maximum Allowed</font></td>
<td width="192"><font color="#000000">Max_connections</font></td>
<td rowSpan="3" width="228"><font color="#000000">Currently open connections as a percentage of maximum allowed connections.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Open Connections</font></td>
<td width="192"><font color="#000000">Threads_connected</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Connection Usage</font></td>
<td width="192"><font color="#000000">Threads_connected/ Max_connections</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Currently running threads</font></td>
<td width="192"><font color="#000000">Threads_running</font></td>
<td rowSpan="3" width="228"><font color="#000000">Higher value indicates that you may run out of connections soon and new clients may be refused connection.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Highest no. of Concurrent Connections</font></td>
<td width="192"><font color="#000000">Max_used_connections</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Percentage of maximum allowed reached</font></td>
<td width="192"><font color="#000000">(Max_used_connections/ Max_connections) *100</font></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">MyISAM Key Cache</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Allocated Memory</font></td>
<td width="192"><font color="#000000">Key_buffer_size</font></td>
<td width="228"><font color="#000000">If not using MyISAM tables, set it to 8-64M so as to use for internal temporary disk tables.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Block Size</font></td>
<td width="192"><font color="#000000">Key_cache_block_size</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">No. of Blocks</font></td>
<td width="192"><font color="#000000">Key_buffer_size/Key_cache_block_size</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Used Blocks</font></td>
<td width="192"><font color="#000000">(Key_buffer_size/ Key_cache_block_size)- key_blocks_unused</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><strong><font color="#000000">Percent of Used Blocks</font></strong></td>
<td width="192"><font color="#000000">1-(Key_blocks_unused/No. of Blocks)*100</font></td>
<td width="228"><font color="#000000">Key cache in use.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Blocks requested from Cache</font></td>
<td width="192"><font color="#000000">Key_read_requests</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Blocks served from disk</font></td>
<td width="192"><font color="#000000">Key_reads</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><strong><font color="#000000">Cache Hit Rate</font></strong></td>
<td width="192"><font color="#000000">1- (Key_reads/Key_read_requests)*100</font></td>
<td width="228"><font color="#000000">For optimum efficiency it should be more than 99%.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Blocks Written to Cache</font></td>
<td width="192"><font color="#000000">Key_write_requests</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Blocks Written to Disk</font></td>
<td width="192"><font color="#000000">Key_writes</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><strong><font color="#000000">Cache Writes Ratio</font></strong></td>
<td width="192"><font color="#000000">Key_writes/Key_write_requests</font></td>
<td width="228"><font color="#000000">It is generally 1 in an OLTP.</font></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Innodb Cache</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Allocated Memory</font></td>
<td width="192"><font color="#000000">Innodb_buffer_pool_size</font></td>
<td width="228"><font color="#000000">It can be 70-80% of available server memory for innodb only installations.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Cache Hit Rate</font></td>
<td width="192"><font color="#000000">1- (innodb_buffer_pool_reads/innodb_buffer_pool_read-requests) *100</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Cache Write Wait Required</font></td>
<td width="192"><font color="#000000">Innodb_buffer_pool_wait_free/ innodb_buffer_pool_write_requests</font></td>
<td width="228"><font color="#000000">Innodb should not have to wait before writing pages, for optimal performance.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Additional Pool Size</font></td>
<td width="192"><font color="#000000">Innodb_additional_mem_pool_size</font></td>
<td width="228"><font color="#000000">Stores innodb data dictionary and other internal structures.</font></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff"> </font><font color="#3366ff">Innodb Logs</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Log Buffer Size</font></td>
<td width="192"><font color="#000000">Innodb_log_buffer_size</font></td>
<td width="228"><font color="#000000">8-16 M recommended.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Log Waits Required</font></td>
<td width="192"><font color="#000000">Innodb_log_waits/ innodb_log_wites</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">No. of log files</font></td>
<td width="192"><font color="#000000">Innodb_log_files_in_group</font></td>
<td width="228"></td>
</tr>
<tr>
<td width="156"><font color="#000000">Size of each log file</font></td>
<td width="192"><font color="#000000">Innodb_log_file_size</font></td>
<td width="228"><font color="#000000">Size of each log file in a log group.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Total size of all log files</font></td>
<td width="192"><font color="#000000">Innodb_log_file_size * Innodb_log_files_in_group</font></td>
<td width="228"><font color="#000000">You should set the combined size of log files to about 25%-100% of your buffer pool size to avoid unneeded buffer pool flush activity on log file overwrite. However, note that a larger log file size will increase the time needed for the recovery process.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Total log file size as percentage to innodb buffer pool size</font></td>
<td width="192"><font color="#000000">Total size of all log files/ innodb_buffer_pool_size</font></td>
<td width="228"><font color="#000000">Increase the size of innodb log files to improve performance.</font></td>
</tr>
<tr>
<td width="156"><font color="#000000">Log flush interval</font></td>
<td width="192"><font color="#000000">Innodb_flush_log_at_trx_commit</font></td>
<td width="228"><font color="#000000">If set to 1, InnoDB will flush (fsync) the transaction logs to the disk at each commit, which offers full ACID behavior. If you are willing to compromise this safety, and you are running small transactions, you may set this to 0 or 2 to reduce disk I/O to the logs. Value 0 means that the log is only written to the log file and the log file flushed to disk approximately once per second. Value 2 means the log is written to the log file at each commit, but the log file is only flushed to disk approximately once per second.</font></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Innodb</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Data Pages</td>
<td width="192">Innodb_buffer_pool_pages_data</td>
<td width="228">The number of pages containing data (dirty or clean).</td>
</tr>
<tr>
<td width="156">Dirty Pages</td>
<td width="192">Innodb_buffer_pool_pages_dirty</td>
<td width="228">The number of pages currently dirty.</td>
</tr>
<tr>
<td width="156">Pages Flushed</td>
<td width="192">Innodb_buffer_pool_pages_flushed</td>
<td width="228">The number of buffer pool pages that have been requested to be flushed.</td>
</tr>
<tr>
<td width="156">Pages Free</td>
<td width="192">Innodb_buffer_pool_pages_free</td>
<td width="228">The number of free pages.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_pages_latched</td>
<td width="228">The number of latched pages in InnoDB buffer pool. These are pages currently being read or written or that can&#8217;t be flushed or removed for some other reason.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_pages_misc</td>
<td width="228">The number of pages busy because they have been allocated for administrative overhead such as row locks or the adaptive hash index. It can also be calculated as Innodb_buffer_pool_pages_total &#8211; Innodb_buffer_pool_pages_free &#8211; Innodb_buffer_pool_pages_data.</td>
</tr>
<tr>
<td width="156">Buffer Pool Pages</td>
<td width="192">Innodb_buffer_pool_pages_total</td>
<td width="228">Total size of buffer pool, in pages.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_read_ahead_rnd</td>
<td width="228">The number of &#8220;random&#8221; read-aheads InnoDB initiated. This happens when a query is to scan a large portion of a table but in random order.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_read_ahead_seq</td>
<td width="228">The number of sequential read-aheads InnoDB initiated. This happens when InnoDB does a sequential full table scan.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_read_requests</td>
<td width="228">The number of logical read requests InnoDB has done.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_reads</td>
<td width="228">The number of logical reads that InnoDB could not satisfy from buffer pool and had to do a single-page read.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_wait_free</td>
<td width="228">Normally, writes to the InnoDB buffer pool happen in the background. However, if it&#8217;s necessary to read or create a page and no clean pages are available, it&#8217;s necessary to wait for pages to be flushed first. This counter counts instances of these waits. If the buffer pool size was set properly, this value should be small.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_buffer_pool_write_requests</td>
<td width="228">The number writes done to the InnoDB buffer pool.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_fsyncs</td>
<td width="228">The number of fsync() operations so far.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_pending_fsyncs</td>
<td width="228">The current number of pending fsync() operations.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_pending_reads</td>
<td width="228">The current number of pending reads.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_pending_writes</td>
<td width="228">The current number of pending writes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_read</td>
<td width="228">The amount of data read so far, in bytes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_reads</td>
<td width="228">The total number of data reads.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_writes</td>
<td width="228">The total number of data writes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_data_written</td>
<td width="228">The amount of data written so far, in bytes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_log_waits</td>
<td width="228">The number of waits we had because log buffer was too small and we had to wait for it to be flushed before continuing.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_log_write_requests</td>
<td width="228">The number of log writes requests.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_log_writes</td>
<td width="228">The number of physical writes to the log file.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_os_log_fsyncs</td>
<td width="228">The number of fsyncs writes done to the log file.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_os_log_pending_fsyncs</td>
<td width="228">The number of pending log file fsyncs.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_os_log_pending_writes</td>
<td width="228">Pending log file writes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_os_log_written</td>
<td width="228">The number of bytes written to the log file.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_page_size</td>
<td width="228">The compiled-in InnoDB page size (default 16KB). Many values are counted in pages; the page size allows them to be easily converted to bytes.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_pages_created</td>
<td width="228">The number of pages created.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_pages_read</td>
<td width="228">The number of pages read.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_pages_written</td>
<td width="228">The number of pages written.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_row_lock_current_waits</td>
<td width="228">The number of row locks currently being waited for.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_row_lock_time</td>
<td width="228">The total time spent in acquiring row locks, in milliseconds.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_row_lock_time_avg</td>
<td width="228">The average time to acquire a row lock, in milliseconds.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_row_lock_time_max</td>
<td width="228">The maximum time to acquire a row lock, in milliseconds.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_row_lock_waits</td>
<td width="228">The number of times a row lock had to be waited for.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_rows_deleted</td>
<td width="228">The number of rows deleted from InnoDB tables.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_rows_inserted</td>
<td width="228">The number of rows inserted in InnoDB tables.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_rows_read</td>
<td width="228">The number of rows read from InnoDB tables.</td>
</tr>
<tr>
<td width="156"></td>
<td width="192">Innodb_rows_updated</td>
<td width="228">The number of rows updated in InnoDB tables.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff"> </font><font color="#3366ff">Thread Cache</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Number of threads that can be cached</td>
<td width="192">Thread_cache_size</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Number of threads in the cache</td>
<td width="192">Threads_cached</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Threads created to handle connections</td>
<td width="192">Threads_created</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Thread cache hit rate</td>
<td width="192">(Threads_created/ Threads_connected) * 100</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Table Cache</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">No. of tables that can be cached</td>
<td width="192">Table_cache</td>
<td width="228">The number of open tables for all threads. Increasing this value increases the number of file descriptors that mysqld requires.</td>
</tr>
<tr>
<td width="156">Tables currently open</td>
<td width="192">Open-tables</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">No. of table cache misses</td>
<td width="192">Opened_tables</td>
<td width="228">If the number increases rapidly, consider increasing the table_cache.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Query Cache</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Query cache enabled</td>
<td width="192">Have_query_cache</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Query Cache Type</td>
<td width="192">Query_cache_type</td>
<td width="228">‘Off&#8217;: query has been disabled; ‘Always&#8217;: all statements are cached except those beginning with SELECT SQL_NO_CACHE; ‘Demand&#8217;: Caching is done only for those beginning with SELECT SQL_CACHE.</td>
</tr>
<tr>
<td width="156">Cache Size</td>
<td width="192">Query_cache_size</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Max size of cached query</td>
<td width="192">Query_cache_limit</td>
<td width="228" vAlign="bottom">The maximum size of individual query results that can be cached.</td>
</tr>
<tr>
<td width="156">Free Memory</td>
<td width="192">Qcache_free_memory</td>
<td width="228">The amount of free memory in the query cache.</td>
</tr>
<tr>
<td width="156">Query parsing and execution buffer</td>
<td width="192">Query_prealloc_size</td>
<td width="228">Better performance by increasing this value, if you execute a lot of complex queries.</td>
</tr>
<tr>
<td width="156">Block Size</td>
<td width="192">Query_cache_min_res_unit</td>
<td width="228">For queries with large resultset, larger block size means better performance; but for queries with small resultset, a large block size leads to memory fragmentation.</td>
</tr>
<tr>
<td width="156">Total Blocks</td>
<td width="192">Qcache_total_blocks</td>
<td width="228">Total number of blocks in the cache</td>
</tr>
<tr>
<td width="156">Free Blocks</td>
<td width="192">Qcache_free_blocks</td>
<td width="228">Total number of free blocks in the cache</td>
</tr>
<tr>
<td width="156">Fragmentation</td>
<td width="192">Qcache_free_blocks *100/ Qcache_total_blocks</td>
<td width="228">Extent of fragmentation in the query cache.</td>
</tr>
<tr>
<td width="156">Queries in cache</td>
<td width="192">Qcache_queries_in_cache</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Queries not cached</td>
<td width="192">Qcache_not_cached</td>
<td width="228">Queries that cannot be cached, since it contains UDFs, user variables or it accesses system database.</td>
</tr>
<tr>
<td width="156">Queries inserted to cache</td>
<td width="192">Qcache_inserts</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Cache Hits</td>
<td width="192">Qcache_hits</td>
<td width="228">Number of queries that served successfully by the query cache.</td>
</tr>
<tr>
<td width="156">Queries pruned from cache</td>
<td width="192">Qcache_lowmem_prunes</td>
<td width="228">Queries that were inserted into the query cache, but subsequently got pruned, because of low memory.</td>
</tr>
<tr>
<td width="156">Pruned as percentage of inserts</td>
<td width="192">Qcache_lowmem_prunes* 100/  Qcache_inserts</td>
<td width="228">If this rate is high, consider increasing Query_cache_size system variable.</td>
</tr>
<tr>
<td width="156">Cache Hit Rate</td>
<td width="192">Qcache_hits * 100 / (Qcache_hits + Qcache_inserts)</td>
<td width="228">A high rate indicates that queries in cache are being reused by other threads; a low rate shows either not enough memory allocated to query cache or identical queries are not repeatedly issued to the server.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Sort Buffers</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Buffer for in-memory sorting</td>
<td width="192">Sort_buffer_size</td>
<td width="228" vAlign="bottom">It is allocated per client, so don&#8217;t make it too large; recommended 1 M.</td>
</tr>
<tr>
<td width="156">Temporary files created because of insufficient Sort_buffer_size</td>
<td width="192">Sort_merge_passes</td>
<td width="228">If this value is high, increase the value of Sort_buffer_size.</td>
</tr>
<tr>
<td width="156">Buffer for fast rebuilds of MyISAM indexes</td>
<td width="192">Myisam_sort_buffer_size</td>
<td width="228">It is allocated per client.</td>
</tr>
<tr>
<td width="156">Buffer for reading rows in sorted order after a sort operation</td>
<td width="192">Read_rnd_buffer_size</td>
<td width="228">It is allocated per client.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Table Locks</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Acquired immediately</td>
<td width="192">Table_locks_immediate</td>
<td width="228">Number of times table locks are acquired immediately.</td>
</tr>
<tr>
<td width="156">Wait was needed</td>
<td width="192">Table_locks_waited</td>
<td width="228">Number of times a wait was required before getting a table lock. If this is high, and you have performance problems, you should first optimize your queries, and then either split your table or tables.</td>
</tr>
<tr>
<td width="156">Lock contention</td>
<td width="192">Table_locks_waited * 100 / (Table_locks_waited + Table_locks_immediate)</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Full Table Scans</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Number of requests to read a row based on a fixed position</td>
<td width="192">handler_read_rnd</td>
<td width="228">This value is high if you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan entire tables or you have joins that don&#8217;t use keys properly.</td>
</tr>
<tr>
<td width="156">Number of requests to read the next row in the data file.</td>
<td width="192">handler_read_rnd_next</td>
<td width="228">This value is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.</td>
</tr>
<tr>
<td width="156">Number of times the first entry was read from an index</td>
<td width="192">handler_read_first</td>
<td width="228">If this value is high, it suggests that the server is doing a lot of full index scans.</td>
</tr>
<tr>
<td width="156">Number of requests to read the next row in key order.</td>
<td width="192">handler_read_next</td>
<td width="228">This value is incremented if you are querying an index column with a range constraint or if you are doing an index scan.</td>
</tr>
<tr>
<td width="156">Number of requests to read a row based on a key.</td>
<td width="192">handler_read_key</td>
<td width="228">If this value is high, it is a good indication that your tables are properly indexed for your queries.</td>
</tr>
<tr>
<td width="156">Number of requests to read the previous row in key order.</td>
<td width="192">handler_read_prev</td>
<td width="228">This read method is mainly used to optimize ORDER BY &#8230; DESC.</td>
</tr>
<tr>
<td width="156">Percentage of full table scans</td>
<td width="192">1-(handler_read_rnd_next + handler_read_rnd) / (handler_read_rnd_next + handler_read_rnd + handler_read_first + handler_read_next + handler_read_key + handler_read_prev )</td>
<td width="228">Ratio of the number of rows read via full table scans to the sum of all handler variables (which denotes all row accesses). A high value indicates excessive table scans. You should examine tables and queries for proper use of indexes. Turn on the slow query log, identify the queries using full table scan and tune it.</td>
</tr>
<tr>
<td width="156">Buffer for full table scans of MyISAM tables</td>
<td width="192">Read_buffer_size</td>
<td width="228">This value is per client.</td>
</tr>
<tr>
<td width="156">SELECTs requiring full table scan</td>
<td width="192">Select_scan</td>
<td width="228">A high value indicates that the queries are not tuned to use indexes.</td>
</tr>
<tr>
<td width="156">Buffer for JOINs requiring full table scan</td>
<td width="192">Join_buffer_size</td>
<td width="228">This value is per client.</td>
</tr>
<tr>
<td width="156">Joins requiring full scan of second and subsequent tables</td>
<td width="192">Select_full_join</td>
<td width="228">If the value is high, optimize the queries to use indexes.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Temporary Tables</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Maximum table size</td>
<td width="192">Tmp_table_size</td>
<td width="228">The maximum size of an internal table that can be created in memory. If an internal table is larger than this size, it is converted into a MyISAM table on disk.</td>
</tr>
<tr>
<td width="156">Maximum size of a memory table</td>
<td width="192">Max_heap_table_size</td>
<td width="228">MySQL uses the lowest value of tmp_table_size and max_heap_table_size.</td>
</tr>
<tr>
<td width="156">Total tables created</td>
<td width="192">Created_tmp_tables</td>
<td width="228">Number of temporary tables created in memory.</td>
</tr>
<tr>
<td width="156">Temporary tables created on disk</td>
<td width="192">Created_tmp_disk_tables</td>
<td width="228">If this value is high, try increasing the values of Tmp_table_size and Max_heap_table_size.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Slow Launch Threads</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Minimum launch time for a thread to be considered slow</td>
<td width="192">Slow_launch_time</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Number of slow launch threads</td>
<td width="192">Slow_launch_threads</td>
<td width="228">General system overload; may be caused by non-optimal queries.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Network Traffic</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Bytes Received from all clients</td>
<td width="192">Bytes_received</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Bytes Sent to all clients</td>
<td width="192">Byets_sent</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Binary Log</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Binary log enabled?</td>
<td width="192">Log_bin</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Synchronized to disk at each write?</td>
<td width="192">Sync_binlog</td>
<td width="228">Synchronizing is the safest choice since in the event of a crash you lose at most the last transaction.</td>
</tr>
<tr>
<td width="156">Binary log cache size</td>
<td width="192">Binlog_cache_size</td>
<td width="228">It stores all SQL statements for the binary log during a transaction; used only with transactional engines.</td>
</tr>
<tr>
<td width="156">Transactions that used cache</td>
<td width="192">Binlog_cache_use</td>
<td width="228">Transactions that used the binary log cache.</td>
</tr>
<tr>
<td width="156">Transactions that  got saved in temporary file</td>
<td width="192">Binlog_cache_disk_use</td>
<td width="228">Number of transactions that used a temporary file because of insufficient Binlog_cache_size.</td>
</tr>
<tr>
<td width="156">Percentage of transactions that  got saved in temporary file</td>
<td width="192">Binlog_cache_disk_use * 100 / Binlog_cache_use</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Slow Query Log</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Enabled?</td>
<td width="192">Log_slow_queries</td>
<td width="228">Identifies queries running slow.</td>
</tr>
<tr>
<td width="156">Min. execution time for a query to be considered slow</td>
<td width="192">Long_query_time</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">No. of slow queries</td>
<td width="192">Slow_queries</td>
<td width="228">Number of queries that took more than long_query_time to execute.</td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">Statements</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">All Statements</td>
<td width="192">Questions</td>
<td width="228">Total number of statements sent to the server by all clients.</td>
</tr>
<tr>
<td width="156">SELECTs</td>
<td width="192">Com_select + Qcache_hits</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">INSERTs</td>
<td width="192">Com_insert + Com_replace</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">UPDATEs</td>
<td width="192">Com_update</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">DELETEs</td>
<td width="192">Com_delete</td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Percentage of total Data Manipulation Statements</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">
<h5><font color="#3366ff">System</font></h5>
</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">CPU Usage</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Total Memory</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Memory Used by MySQL</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Memory Free</td>
<td width="192"></td>
<td width="228"></td>
</tr>
<tr>
<td width="156">Memory Requirement by MySQL if max users are connected</td>
<td width="192">Innodb_buffer_pool_size + Key_buffer_size + Max_connections * (sort_buffer_size + read_buffer_size + binlog_cache_size) + max_connections * 2MB</td>
<td width="228"></td>
</tr>
</table>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/94/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/94/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=94&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/06/29/mysql-server-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP, SQL Server with IIS</title>
		<link>http://johnjacobm.wordpress.com/2007/04/20/php-sql-server-with-iis/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/20/php-sql-server-with-iis/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 22:29:04 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Wamp]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/20/php-sql-server-with-iis/</guid>
		<description><![CDATA[Installing &#38; Configuring PHP with IIS
Download the Windows binary of PHP 5 from php.net. Unzip it to, say, C:\PHP. Open the “php.ini-dist” in C:\PHP and save it as “php.ini”. Locate the following line in php.ini:                         ; cgi.force_redirect = 1
We need to uncomment this line and change the setting to ‘0’ to run PHP under [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=75&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="center"><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis2.jpg" title="iis2.jpg"></a>Installing &amp; Configuring PHP with IIS</span></u></strong></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Download the Windows binary of PHP 5 from php.net. Unzip it to, say, C:\PHP. Open the “php.ini-dist” in C:\PHP and save it as “php.ini”. Locate the following line in php.ini:</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span>        </span></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span>                </span>;</span><font face="Times New Roman"> </font><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">cgi.force_redirect = 1</span></p>
<p></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">We need to uncomment this line and change the setting to ‘0’ to run PHP under IIS, as shown below:</span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">cgi.force_redirect = 0</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Click Start -&gt; Control Panel -&gt; Administrative Tools -&gt; Internet Information Services:</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis1.jpg" title="iis1.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/iis1.jpg" alt="iis1.jpg" /></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Select Default Web Site, right-click on it and select Properties:</span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis2.jpg" title="iis2.jpg"></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis2.jpg" title="iis2.jpg"></p>
<p style="text-align:center;"><img src="http://johnjacobm.files.wordpress.com/2007/04/iis2.jpg" alt="iis2.jpg" /></p>
<p></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Select the Home Directory tab and click on Configuration. In the Application Configuration window, select Mappings and click on the add button. </span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis3.jpg" title="iis3.jpg"></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis3.jpg" title="iis3.jpg"></p>
<p style="text-align:center;"><img src="http://johnjacobm.files.wordpress.com/2007/04/iis3.jpg" alt="iis3.jpg" /></p>
<p></a></span></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Enter the executable as C:\PHP\PHP-CGI.EXE and the extension as .php, as shown below. </span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis4.jpg" title="iis4.jpg"></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><a href="http://johnjacobm.files.wordpress.com/2007/04/iis4.jpg" title="iis4.jpg"></p>
<p style="text-align:center;"><img src="http://johnjacobm.files.wordpress.com/2007/04/iis4.jpg" alt="iis4.jpg" /></p>
<p></a></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Click on OK button. This configuration enables IIS to run PHP files using PHP interpreter. </span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Finally, right-click on My Computer, select Properties, select Advanced tab and click on Environment Variables. In System Variables, select Path and click on Edit button. Add these paths to the variable value:</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span>                        </span></span></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span></span>C:\PHP;C:\PHP\EXT</span></p>
<p></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Click OK to finish.</span></p>
<p><a href="http://johnjacobm.files.wordpress.com/2007/04/iis5.jpg" title="iis5.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/iis5.jpg" title="iis5.jpg"></p>
<p style="text-align:center;"><img src="http://johnjacobm.files.wordpress.com/2007/04/iis5.jpg" alt="iis5.jpg" /></p>
<p></a></p>
<p style="line-height:150%;text-align:justify;margin:0;" class="MsoNormal"> </p>
<p><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Configuring PHP with SQL Server</span></u></strong><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="text-decoration:none;"> </span></span></u></strong><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></u></strong><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">PHP supports SQL Server with a set of mssql_xxx functions. The PHP extension directory (normally \PHP\EXT) contains all the database libraries, like php_mssql.dll for SQL Server.</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> <span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Open php.ini. Verify that the “extension_dir=” points to the folder in which the database libraries are stored, as shown below:</span></span></span></u></strong><strong><u><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">extension_dir = &#8220;c:\php\ext&#8221;</span></p>
<p></span></u></strong><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Next, look for the line “;extension=php_mssql.dll” in php.ini. Uncomment this line. It tells PHP to load the php_mssql.dll extension library into memory, which makes the mssql_xxx set of functions available to us.</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">You need the SQL client tools installed on the Web Server. The minimum requirement is the file “ntwdblib.dll”, which can be located in the \Windows\System32 folder on your SQL Server. Copy it to \Windows\System32 folder on your Web Server.</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Now restart your web server, IIS.</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Create a file called “test.php” in notepad and enter the following:</span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:10pt;font-family:'Courier New';">$server=&#8221;Beta&#8221;;</span><span style="font-size:10pt;font-family:'Courier New';">$username=&#8221;sa&#8221;;</span><span style="font-size:10pt;font-family:'Courier New';">$password=&#8221;";</span><span style="font-size:10pt;font-family:'Courier New';">$sqlconnect=mssql_connect($server, $username, $password);</span><span style="font-size:10pt;font-family:'Courier New';">$sqldb=mssql_select_db(&#8220;opus&#8221;,$sqlconnect);</span><span style="font-size:10pt;font-family:'Courier New';">$sqlquery=&#8221;SELECT order_no FROM Orderlines;&#8221;;</span><span style="font-size:10pt;font-family:'Courier New';">$results= mssql_query($sqlquery);</span><span style="font-size:10pt;font-family:'Courier New';">while ($row=mssql_fetch_array($results)){</span><span style="font-size:10pt;font-family:'Courier New';">echo $row['order_no'].&#8221;&lt;br&gt;\n&#8221;;}</span><span style="font-size:10pt;font-family:'Courier New';">mssql_close($sqlconnect);</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span> </span></span></p>
<p></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span></span></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Save the file in the web server folder “c:\Inetpub\wwwroot”. Open Internet Explorer and type the URL:</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span>            </span></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"><span></span><a href="http://alpha/test.php">http://alpha/test.php</a></span></p>
<p><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"></span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';">Here <strong>Alpha</strong> is the Web Server and <strong>Beta</strong> is the Database Server. The above URL returns the query results on the browser. It is possible to execute SQL statements as well as Stored Procedures of SQL Server in a similar manner.</span><span style="font-size:11pt;line-height:150%;font-family:'Microsoft Sans Serif';"> </span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=75&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/20/php-sql-server-with-iis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/iis1.jpg" medium="image">
			<media:title type="html">iis1.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/iis2.jpg" medium="image">
			<media:title type="html">iis2.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/iis3.jpg" medium="image">
			<media:title type="html">iis3.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/iis4.jpg" medium="image">
			<media:title type="html">iis4.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/iis5.jpg" medium="image">
			<media:title type="html">iis5.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Installation and Configuration</title>
		<link>http://johnjacobm.wordpress.com/2007/04/20/installation-and-configuration/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/20/installation-and-configuration/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 20:59:02 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Wamp]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/20/installation-and-configuration/</guid>
		<description><![CDATA[You have Windows XP or Vista. Download the other packages from their respectives sites:

Apache from httpd.apache.org
MySQL from www.mysql.com
PHP from www.php.net

Download the latest stable versions. In this section, we are using Apache 2.0.55, MySQL 5.0.18 and PHP 5.1.5.
After installing Apache, you may see the files in the folder C:\Program Files\Apache Group\Apache2\. The web pages are stored [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=64&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font face="Times New Roman"><a href="http://johnjacobm.files.wordpress.com/2007/04/test2.jpg" title="test2.jpg"></a>You have Windows XP or Vista. Download the other packages from their respectives sites:</font></p>
<ol>
<li class="MsoNormal"><font face="Times New Roman">Apache from httpd.apache.org</font></li>
<li class="MsoNormal"><font face="Times New Roman">MySQL from www.mysql.com</font></li>
<li class="MsoNormal"><font face="Times New Roman">PHP from www.php.net</font></li>
</ol>
<p><font face="Times New Roman">Download the latest stable versions. In this section, we are using Apache 2.0.55, MySQL 5.0.18 and PHP 5.1.5.</font></p>
<p><font face="Times New Roman">After installing Apache, you may see the files in the folder C:\Program Files\Apache Group\Apache2\. The web pages are stored in “htdocs” sub-folder and the configuration files are stored in “conf” sub-folder. You may save your web pages in a new folder “c:\htdocs”. In this case you need to modify the “httpd” file in “conf” folder to make these changes:</font></p>
<p><font face="Times New Roman">DocumentRoot “C:/htdocs”</font></p>
<p><font face="Times New Roman">&lt;Directory “C:/htdocs”&gt;</font></p>
<p><font face="Times New Roman">Open a browser and type </font></p>
<p style="margin-left:1in;"><font face="Times New Roman">http://localhost</font></p>
<p><font face="Times New Roman">If the Apache is installed properly, you will see a screen as shown below:</font></p>
<p><font face="Times New Roman">There are two main ways to install PHP for Windows: either manually or by using the installer. Once you have PHP installed on your Windows system, you may also want to load various extensions for added functionality.</font></p>
<p><font face="Times New Roman">Try the PHP 5.1.5 installer downloaded. It will install PHP into C:\PHP. You may see a screen to choose the Server Type from a number of options, which include web servers like PWS, IIS, Apache and Xitami.</font></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/php11.jpg" title="php11.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/php11.jpg" alt="php11.jpg" /></a></p>
<p align="center"><a rel="attachment wp-att-67" href="http://johnjacobm.wordpress.com/2007/04/20/installation-and-configuration/php1jpg/" title="php1.jpg"></a></p>
<p><font face="Times New Roman">Unfortunately, I was asked to configure the web server manually, when opted for Apache. Let us do that!</font></p>
<p><font face="Times New Roman">Unzip the downloaded PHP 5.1.5 zip file into the C:\PHP folder. Open the file “php.ini-recommended” and save it as “php.ini” to your Windows folder (e.g., C:\Windows). Copy “php5ts.dll” to any path mentioned in PATH environment variable (e.g., C:\Windows\System32). </font></p>
<p><font face="Times New Roman">At his point of time, Apache does not recognize PHP pages. If you load the test page now in your browser, you will get a screen similar to the following, since Apache does not get the help of PHP to interpret the page:</font></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/test2.jpg" title="test2.jpg"></a></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/test2.jpg" title="test2.jpg"></a></p>
<p><font face="Times New Roman"> <a href="http://johnjacobm.files.wordpress.com/2007/05/test2.jpg" title="test2.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/05/test2.jpg" alt="test2.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/test2.jpg" title="test2.jpg"></a></font></p>
<p><font face="Times New Roman">Now modify Apache configuration file httpd to reflect the following lines: </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"> LoadModule php5_module &#8220;c:/php/php5apache2.dll&#8221;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">AddType application/x-httpd-php .php</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Restart Apache web server. Test the page “test.php” with your browser. If the installations are correct, you may get a screen similar to the following:</font></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/php2.jpg" title="php2.jpg"></a></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/php3.jpg" title="php3.jpg"></a></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><a href="http://johnjacobm.files.wordpress.com/2007/05/php3.jpg" title="php3.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/05/php3.jpg" alt="php3.jpg" /></a> </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Scroll down the page. There is much information available on the PHP setup on Apache. Note that we have now a database engine called “sqlite” as part of the PHP.</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Next install the full fledged database MySQL 5.0.18. The installation will complete the service configuration as well, so that Windows will start MySQL as a service. Once the installation is over, you may try the command line client. It will appear as shown below:</font></p>
<p align="center"><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql.jpg" title="mysql.jpg"></a></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"> <a href="http://johnjacobm.files.wordpress.com/2007/05/mysql.jpg" title="mysql.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/05/mysql.jpg" alt="mysql.jpg" /></a></font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Again, configure PHP to talk to MySQL. Open php.ini (in C:\WINDOWS) and make the following modifications: </font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">1. Find “extension_dir” and modify it to show the directory in which the loadable extensions (modules) reside.</font></p>
<p style="margin:0 0 0 1in;" class="MsoNormal"><font face="Times New Roman">extension_dir = &#8220;c:\php\ext&#8221;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">2. Locate Windows extensions and uncomment the line which reads:</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman"><span>                        </span>Extension = php_mysql.dll</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">3. In order to use PHP&#8217;s session functions, you need to modify session save path as shown here: </font></p>
<p style="text-indent:0.5in;margin:0 0 0 0.5in;" class="MsoNormal"><font face="Times New Roman">session.save_path = &#8220;c:\windows\temp&#8221;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Finally, add C:\PHP as a path in Windows system environment variable PATH. Otherwise, while Apache tries to load php-mysql.dll, it may show an error warning like this:</font></p>
<p style="margin:0 0 0 1in;" class="MsoNormal"><font face="Times New Roman">“PHP Startup: Unable to load dynamic library ‘php_mysql.dll’ – </font></p>
<p style="margin:0 0 0 1in;" class="MsoNormal"><font face="Times New Roman">The specified module could not be found.”</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">If everything is done right, if you again test the page “test.php” in your browser, you will see screens with MySQL variables defined as shown below:</font></p>
<p><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/05/mysql2.jpg" title="mysql2.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/05/mysql2.jpg" alt="mysql2.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></p>
<p style="text-align:center;"><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql3.jpg" title="mysql3.jpg"></a></p>
<p></a><a href="http://johnjacobm.files.wordpress.com/2007/04/mysql2.jpg" title="mysql2.jpg"></a><a href="http://johnjacobm.files.wordpress.com/2007/05/mysql3.jpg" title="mysql3.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/05/mysql3.jpg" alt="mysql3.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/test.jpg" title="test.jpg"></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=64&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/20/installation-and-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/php11.jpg" medium="image">
			<media:title type="html">php11.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/05/test2.jpg" medium="image">
			<media:title type="html">test2.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/05/php3.jpg" medium="image">
			<media:title type="html">php3.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/05/mysql.jpg" medium="image">
			<media:title type="html">mysql.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/05/mysql2.jpg" medium="image">
			<media:title type="html">mysql2.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/05/mysql3.jpg" medium="image">
			<media:title type="html">mysql3.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>US State Abbreviations</title>
		<link>http://johnjacobm.wordpress.com/2007/04/19/us-state-abbreviations/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/19/us-state-abbreviations/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 19:55:21 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Travelogue]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/19/us-state-abbreviations/</guid>
		<description><![CDATA[


US States, Abbreviations and Capitals


State
Standard
Abbreviation
Postal
Abbreviation
Capital City


Alabama
Ala.
AL
Montgomery


Alaska
Alaska
AK
Juneau


Arizona
Ariz.
AZ
Phoenix


Arkansas
Ark.
AR
Little Rock


California
Calif.
CA
Sacramento


Colorado
Colo.
CO
Denver


Connecticut
Conn.
CT
Hartford


Delaware
Del.
DE
Dover


Florida
Fla.
FL
Tallahassee


Georgia
Ga.
GA
Atlanta


Hawaii
Hawaii
HI
Honolulu


Idaho
Idaho
ID
Boise


Illinois
Ill.
IL
Springfield


Indiana
Ind.
IN
Indianapolis


Iowa
Iowa
IA
Des Moines


Kansas
Kans.
KS
Topeka


Kentucky
Ky.
KY
Frankfort


Louisiana
La.
LA
Baton Rouge


Maine
Maine
ME
Augusta


Maryland
Md.
MD
Annapolis


Massachusetts
Mass.
MA
Boston


Michigan
Mich.
MI
Lansing


Minnesota
Minn.
MN
St. Paul


Mississippi
Miss.
MS
Jackson


Missouri
Mo.
MO
Jefferson City


Montana
Mont.
MT
Helena


Nebraska
Nebr.
NE
Lincoln


Nevada
Nev.
NV
Carson City


New Hampshire
N.H.
NH
Concord


New Jersey
N.J.
NJ
Trenton


New Mexico
N.M.
NM
Santa Fe


New York
N.Y.
NY
Albany


North Carolina
N.C.
NC
Raleigh


North Dakota
N.D.
ND
Bismarck


Ohio
Ohio
OH
Columbus


Oklahoma
Okla.
OK
Oklahoma City


Oregon
Ore.
OR
Salem


Pennsylvania
Pa.
PA
Harrisburg


Rhode Island
R.I.
RI
Providence


South Carolina
S.C.
SC
Columbia


South Dakota
S.D.
SD
Pierre


Tennessee
Tenn.
TN
Nashville


Texas
Tex.
TX
Austin


Utah
Utah
UT
Salt Lake City


Vermont
Vt.
VT
Montpelier


Virginia
Va.
VA
Richmond


Washington
Wash.
WA
Olympia


West Virginia
W.Va.
WV
Charleston


Wisconsin
Wis.
WI
Madison


Wyoming
Wyo.
WY
Cheyenne



       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=62&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font face="Times New Roman"></p>
<table border="1" align="center" cellPadding="2" cellSpacing="0" class="d">
<tr>
<th colSpan="4">US States, Abbreviations and Capitals</th>
</tr>
<tr>
<td>State</td>
<td>Standard<br />
Abbreviation</td>
<td>Postal<br />
Abbreviation</td>
<td>Capital City</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.alabama.gov/">Alabama</a></td>
<td>Ala.</td>
<td>AL</td>
<td>Montgomery</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.alaska.gov/">Alaska</a></td>
<td>Alaska</td>
<td>AK</td>
<td>Juneau</td>
</tr>
<tr>
<td><a target="_blank" href="http://az.gov/webapp/portal/">Arizona</a></td>
<td>Ariz.</td>
<td>AZ</td>
<td>Phoenix</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.ar.us/">Arkansas</a></td>
<td>Ark.</td>
<td>AR</td>
<td>Little Rock</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ca.gov/state/portal/myca_homepage.jsp">California</a></td>
<td>Calif.</td>
<td>CA</td>
<td>Sacramento</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.colorado.gov/">Colorado</a></td>
<td>Colo.</td>
<td>CO</td>
<td>Denver</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ct.gov/">Connecticut</a></td>
<td>Conn.</td>
<td>CT</td>
<td>Hartford</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.delaware.gov/">Delaware</a></td>
<td>Del.</td>
<td>DE</td>
<td>Dover</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.myflorida.com/">Florida</a></td>
<td>Fla.</td>
<td>FL</td>
<td>Tallahassee</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.georgia.gov/">Georgia</a></td>
<td>Ga.</td>
<td>GA</td>
<td>Atlanta</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.hawaii.gov/portal/">Hawaii</a></td>
<td>Hawaii</td>
<td>HI</td>
<td>Honolulu</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.idaho.gov/">Idaho</a></td>
<td>Idaho</td>
<td>ID</td>
<td>Boise</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.illinois.gov/">Illinois</a></td>
<td>Ill.</td>
<td>IL</td>
<td>Springfield</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.in.gov/">Indiana</a></td>
<td>Ind.</td>
<td>IN</td>
<td>Indianapolis</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.iowa.gov/state/main/index.html">Iowa</a></td>
<td>Iowa</td>
<td>IA</td>
<td>Des Moines</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.kansas.gov/">Kansas</a></td>
<td>Kans.</td>
<td>KS</td>
<td>Topeka</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.kentucky.gov/">Kentucky</a></td>
<td>Ky.</td>
<td>KY</td>
<td>Frankfort</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.louisiana.gov/wps/portal/">Louisiana</a></td>
<td>La.</td>
<td>LA</td>
<td>Baton Rouge</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.maine.gov/">Maine</a></td>
<td>Maine</td>
<td>ME</td>
<td>Augusta</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.maryland.gov/">Maryland</a></td>
<td>Md.</td>
<td>MD</td>
<td>Annapolis</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.mass.gov/">Massachusetts</a></td>
<td>Mass.</td>
<td>MA</td>
<td>Boston</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.michigan.gov/">Michigan</a></td>
<td>Mich.</td>
<td>MI</td>
<td>Lansing</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.mn.us/">Minnesota</a></td>
<td>Minn.</td>
<td>MN</td>
<td>St. Paul</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ms.gov/">Mississippi</a></td>
<td>Miss.</td>
<td>MS</td>
<td>Jackson</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.mo.us/">Missouri</a></td>
<td>Mo.</td>
<td>MO</td>
<td>Jefferson City</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.montana.gov/">Montana</a></td>
<td>Mont.</td>
<td>MT</td>
<td>Helena</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.nebraska.gov/">Nebraska</a></td>
<td>Nebr.</td>
<td>NE</td>
<td>Lincoln</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.nv.gov/">Nevada</a></td>
<td>Nev.</td>
<td>NV</td>
<td>Carson City</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.nh.gov/">New Hampshire</a></td>
<td>N.H.</td>
<td>NH</td>
<td>Concord</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.nj.us/">New Jersey</a></td>
<td>N.J.</td>
<td>NJ</td>
<td>Trenton</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.nm.us/">New Mexico</a></td>
<td>N.M.</td>
<td>NM</td>
<td>Santa Fe</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.ny.us/">New York</a></td>
<td>N.Y.</td>
<td>NY</td>
<td>Albany</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ncgov.com/">North Carolina</a></td>
<td>N.C.</td>
<td>NC</td>
<td>Raleigh</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.nd.gov/">North Dakota</a></td>
<td>N.D.</td>
<td>ND</td>
<td>Bismarck</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ohio.gov/">Ohio</a></td>
<td>Ohio</td>
<td>OH</td>
<td>Columbus</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ok.gov/">Oklahoma</a></td>
<td>Okla.</td>
<td>OK</td>
<td>Oklahoma City</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.oregon.gov/">Oregon</a></td>
<td>Ore.</td>
<td>OR</td>
<td>Salem</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.pa.us/">Pennsylvania</a></td>
<td>Pa.</td>
<td>PA</td>
<td>Harrisburg</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.ri.gov/index.php">Rhode Island</a></td>
<td>R.I.</td>
<td>RI</td>
<td>Providence</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.myscgov.com/">South Carolina</a></td>
<td>S.C.</td>
<td>SC</td>
<td>Columbia</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.sd.us/">South Dakota</a></td>
<td>S.D.</td>
<td>SD</td>
<td>Pierre</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.tennessee.gov/">Tennessee</a></td>
<td>Tenn.</td>
<td>TN</td>
<td>Nashville</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.state.tx.us/">Texas</a></td>
<td>Tex.</td>
<td>TX</td>
<td>Austin</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.utah.gov/">Utah</a></td>
<td>Utah</td>
<td>UT</td>
<td>Salt Lake City</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.vermont.gov/">Vermont</a></td>
<td>Vt.</td>
<td>VT</td>
<td>Montpelier</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.virginia.gov/cmsportal/">Virginia</a></td>
<td>Va.</td>
<td>VA</td>
<td>Richmond</td>
</tr>
<tr>
<td><a target="_blank" href="http://access.wa.gov/">Washington</a></td>
<td>Wash.</td>
<td>WA</td>
<td>Olympia</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.wv.gov/">West Virginia</a></td>
<td>W.Va.</td>
<td>WV</td>
<td>Charleston</td>
</tr>
<tr>
<td><a target="_blank" href="http://www.wisconsin.gov/">Wisconsin</a></td>
<td>Wis.</td>
<td>WI</td>
<td>Madison</td>
</tr>
<tr>
<td><a target="_blank" href="http://wyoming.gov/">Wyoming</a></td>
<td>Wyo.</td>
<td>WY</td>
<td>Cheyenne</td>
</tr>
</table>
<p></font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=62&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/19/us-state-abbreviations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
		<item>
		<title>Paritioning in SQL Server 2005</title>
		<link>http://johnjacobm.wordpress.com/2007/04/19/paritioning-in-sql-server-2005/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/19/paritioning-in-sql-server-2005/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 18:35:17 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/19/paritioning-in-sql-server-2005/</guid>
		<description><![CDATA[On Partioning tables in SQL Server 2005, here is a good article.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=61&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On Partioning tables in SQL Server 2005, <a href="http://www.simple-talk.com/sql/sql-server-2005/partitioned-tables-in-sql-server-2005/">here is a good article</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=61&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/19/paritioning-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
		<item>
		<title>Some photos of Columbus, OH</title>
		<link>http://johnjacobm.wordpress.com/2007/04/19/columbus-oh/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/19/columbus-oh/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 17:25:34 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Travelogue]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/19/columbus-oh/</guid>
		<description><![CDATA[



       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=49&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-180.jpg" title="dublinoh-180.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-180.thumbnail.jpg" alt="dublinoh-180.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-188.jpg" title="dublinoh-188.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-188.thumbnail.jpg" alt="dublinoh-188.jpg" /></a><br />
<a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-184.jpg" title="dublinoh-184.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-184.thumbnail.jpg" alt="dublinoh-184.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-179.jpg" title="dublinoh-179.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-179.thumbnail.jpg" alt="dublinoh-179.jpg" /></a><br />
<a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-176.jpg" title="dublinoh-176.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-176.thumbnail.jpg" alt="dublinoh-176.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-175.jpg" title="dublinoh-175.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-175.thumbnail.jpg" alt="dublinoh-175.jpg" /></a><br />
<a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-174.jpg" title="dublinoh-174.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-174.thumbnail.jpg" alt="dublinoh-174.jpg" /></a><a href="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-172.jpg" title="dublinoh-172.jpg"><img src="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-172.thumbnail.jpg" alt="dublinoh-172.jpg" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=49&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/19/columbus-oh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-180.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-180.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-188.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-188.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-184.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-184.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-179.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-179.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-176.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-176.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-175.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-175.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-174.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-174.jpg</media:title>
		</media:content>

		<media:content url="http://johnjacobm.files.wordpress.com/2007/04/dublinoh-172.thumbnail.jpg" medium="image">
			<media:title type="html">dublinoh-172.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Bookmarks for Oracle</title>
		<link>http://johnjacobm.wordpress.com/2007/04/16/bookmarks-for-oracle/</link>
		<comments>http://johnjacobm.wordpress.com/2007/04/16/bookmarks-for-oracle/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 21:46:09 +0000</pubDate>
		<dc:creator>johnjacob</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://johnjacobm.wordpress.com/2007/04/16/bookmarks-for-oracle/</guid>
		<description><![CDATA[
Database Specialists &#8211; Presentations and White Papers 
Oracle Topics  
Jeff Hunter&#8217;s Oracle DBA Tips 
Oracle Berkeley DB 
Oracle Commands 
Oracle Covering today&#8217;s Oracle topics 
Oracle Database Online Documentation 10g Release 2 (10.2) 
Oracle FAQ Quizzes 
Oracle FusionZone Business Intelligence 
Oracle performance tuning 
Oracle Database Journal Articles
Oracle SQL Quick Reference 
Oracle Technology Network  
ORACLE-BASE &#8211; Upgrading to Oracle Database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=43&subd=johnjacobm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><dl>
<dt><a href="http://www.dbspecialists.com/presentations.html">Database Specialists &#8211; Presentations and White Papers</a> </dt>
<dt><a href="http://searchoracle.techtarget.com/">Oracle Topics</a>  </dt>
<dt><a href="http://www.idevelopment.info/">Jeff Hunter&#8217;s Oracle DBA Tips</a> </dt>
<dt><a href="http://www.oracle.com/technology/products/berkeley-db/index.html">Oracle Berkeley DB</a> </dt>
<dt><a href="http://www.ss64.com/ora/index.html">Oracle Commands</a> </dt>
<dt><a href="http://searchoracle.techtarget.com/">Oracle Covering today&#8217;s Oracle topics</a> </dt>
<dt><a href="http://www.oracle.com/pls/db102/portal.all_books">Oracle Database Online Documentation 10g Release 2 (10.2)</a> </dt>
<dt><a href="http://orafaq.com/supquiz.htm">Oracle FAQ Quizzes</a> </dt>
<dt><a href="http://www.fusion-zone.com/businsight.html">Oracle FusionZone Business Intelligence</a> </dt>
<dt><a href="http://www.ixora.com.au/">Oracle performance tuning</a> </dt>
<dt><a href="http://www.databasejournal.com/features/oracle/">Oracle Database Journal Articles
<dt><a href="http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14195/toc.htm">Oracle SQL Quick Reference</a> </dt>
<dt><a href="http://www.oracle.com/technology/index.html">Oracle Technology Network </a> </dt>
<dt><a href="http://www.oracle-base.com/articles/10g/UpgradingTo10g.php">ORACLE-BASE &#8211; Upgrading to Oracle Database 10g</a> </dt>
<dt><a href="http://www.orafusion.com/resources.htm">OraFusion.com</a> </dt>
<dt><a href="http://www.oraperf.com/analyze.html">OraPerf.com &#8211; The Oracle Instance Performance Portal</a> </dt>
<dt><a href="http://www.puschitz.com/">PUSCHITZ.COM &#8211; Oracle Linux, Linux Security, Linux Tips</a>  </dt>
</dl>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/johnjacobm.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/johnjacobm.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnjacobm.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnjacobm.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnjacobm.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnjacobm.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnjacobm.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnjacobm.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnjacobm.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnjacobm.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnjacobm.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnjacobm.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johnjacobm.wordpress.com&blog=336570&post=43&subd=johnjacobm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://johnjacobm.wordpress.com/2007/04/16/bookmarks-for-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ddefe94647655d731c637f31a15feb5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnjacob</media:title>
		</media:content>
	</item>
	</channel>
</rss>