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

<channel>
	<title>Bin-Blog &#187; Database</title>
	<atom:link href="http://www.bin-co.com/blog/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Interactive SQL Tutorial</title>
		<link>http://www.bin-co.com/blog/2009/02/interactive-sql-tutorial/</link>
		<comments>http://www.bin-co.com/blog/2009/02/interactive-sql-tutorial/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:00:44 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[gears]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=230</guid>
		<description><![CDATA[I have completed a tutorial that I have been working on for a long time. Its the <a href="http://www.bin-co.com/database/sql_tutorial/">Interactive SQL(Structured Query Language) Tutorial</a> - it teaches you the basics of SQL. SQL, for those of you who are unaware of it, is the language used to access and manipulate data within a database. It is very simple and very powerful.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/02/db.png" alt="Database SQL" title="Database SQL" width="158" height="155" class="alignnone size-full wp-image-231 intro" align="right" /></p>
<p class="intro">I have completed a tutorial that I have been working on for a long time. Its the <a href="http://www.bin-co.com/database/sql_tutorial/">Interactive SQL(Structured Query Language) Tutorial</a> &#8211; it teaches you the basics of SQL. SQL, for those of you who are unaware of it, is the language used to access and manipulate data within a database. It is very simple and very powerful.</p>
<h2>Interactive SQL Query Box</h2>
<p>The cool thing about the tutorial is that it is interactive &#8211; each vistor can have a personal sandboxed database in which they can run any query they want. I call it the interactive query box. You can test almost all the SQL statements in this box without worrying about data loss &#8211; all the data is stored temporarily in this system. But you will have to install an extension called Google Gears in your browser.</p>
<h3>Google Gears</h3>
<p><a href="http://gears.google.com/">Google Gears</a> is an open source browser extension that lets developers create web applications that can run offline. You can install it in Firefox and Internet Explorer. If you want to try out SQL queries as it is presented in the tutorial, you need this extension.</p>
<p>You can view the tutorial without this extension, but you will be missing out the coolest feature of the tutorial.</p>
<h2>Simple Tutorial</h2>
<p>I have tried to make the tutorial as simple as possible. If you have learned about RDBMS, you know there are stuff like Normal Forms and Cardinality and other brain numbing definitions. I have removed all but the <a href="http://www.bin-co.com/database/sql_tutorial/db_terms_meanings.php">most essential definitions in my tutorial</a> &#8211; it makes it easier to understand.</p>
<p>Even after removing the confusing definitions, I have apologized about the rest&#8230;</p>
<blockquote><p>Sorry if you find the definitions here a bit too much. Trust me &#8211; you are much better off here than if you are learning SQL from a database book. They are going to lay definitions on you till your eyes bleed. I have seen brave men die from too much exposure to definitions.</p></blockquote>
<h2>Its Funny</h2>
<p>I have learned a lot of languages and programming techniques by reading books and sites &#8211; and one thing I have noticed is that most of the material is unbelievably dry. Its extremely hard to keep your eyes open when you read them. That is why <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=https%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D23%26ref%255F%3Dnb%255Fss%255F%26y%3D23%26field-keywords%3Dhead%2520first%26url%3Dsearch-alias%253Dstripbooks&amp;tag=binnva-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957">head first books</a><img src="https://www.assoc-amazon.com/e/ir?t=binnva-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> are so popular &#8211; they made learning fun.</p>
<p>Its been a policy of mine to inject humor into such tutorials &#8211; if you have read any of my earlier tutorials, you would know that&#8230;</p>
<ul>
<li><a href="http://www.openjs.com/tutorials/basic_tutorial/">An Interactive JS Tutorial &#8211; The ABC of JavaScript</a></li>
<li><a href="http://www.openjs.com/tutorials/advanced_tutorial/">Advanced JavaScript Tutorial</a></li>
<li><a href="http://www.bin-co.com/tcl/tutorial/">Tcl/Tk Tutorial &#8211; Create GUI using Tk with Tcl Language</a></li>
<li><a href="http://www.bin-co.com/perl/tutorial/">Beginner&#8217;s Tutorial for CGI Perl Language</a></li>
<li><a href="http://www.bin-co.com/perl/perl_tk_tutorial/">Perl/Tk Tutorial &#8211; Create GUI with Perl&#8217;s Tk Module</a></li>
</ul>
<p>Also, I am a <a href="http://blog.binnyva.com/">humor blogger</a> &#8211; so this stuff comes easily to me.</p>
<p>What I am trying to say is that the new SQL tutorial follows the same pattern &#8211; there is a lot of humor in it. So people can read it easily &#8211; without resorting to caffeine shots.</p>
<h2>I Want Your Help&#8230;</h2>
<p>Now that the writing part is over, I am proof-reading it. I have corrected a fair amount of stupid mistakes so far &#8211; but I am sure that there are many still left. I was hoping that a few of you would head over to my <a href="http://www.bin-co.com/database/sql_tutorial/">SQL Tutorial</a> and go through it. If you notice any mistakes, just put it in the comment field at the end of each page. Once I fix an error, I&#8217;ll remove the comment &#8211; that way, when I launch the tutorial, people will think that there were no errors in my tutorial. Devious, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/02/interactive-sql-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mastering phpMyAdmin: A Review</title>
		<link>http://www.bin-co.com/blog/2008/11/mastering-phpmyadmin-a-review/</link>
		<comments>http://www.bin-co.com/blog/2008/11/mastering-phpmyadmin-a-review/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:12:20 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=205</guid>
		<description><![CDATA[Some time ago, I was approched by the publisher of the book to write a review of their book '<a href="http://www.amazon.com/gp/product/1847194184?ie=UTF8&#38;tag=binnva-20&#38;linkCode=as2&#38;camp=1789&#38;creative=9325&#38;creativeASIN=1847194184">Mastering phpMyAdmin 2.11 for Effective MySQL Management by Marc Delisle</a><img src="http://www.assoc-amazon.com/e/ir?t=binnva-20&#38;l=as2&#38;o=1&#38;a=1847194184" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />[Affliate link]'. This got a bit delayed because of the <a href="http://www.bin-co.com/blog/2008/11/eventr-wordpress-plugin/">plugin week</a>. But I managed to finish the book today - so here is the review. Bottom line - most people are using phpMyAdmin for only the most basic operations(editing data, import, export, etc.). If you are one of them, you don't need the book - you already know all you need to know about phpMyAdmin. But <strong class="highlight">other(like me) use it for advanced purposes - to manage MySQL, create database/tables, run queries, etc. I would recommend you get this book. It covers everything from basic usage(which is a bit boring and should be skipped over) to advanced stuff(like designer view, configuration options, triggers, innoDB relation options etc.)</strong>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/phpmyadmin.png" alt="" title="phpMyAdmin" width="202" height="130" class="alignnone size-full wp-image-206 intro" align="right" /></p>
<p class="intro">Some time ago, I was approached by the publisher of the book to write a review of their book &#8216;<a href="http://www.amazon.com/gp/product/1847194184?ie=UTF8&amp;tag=binnva-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1847194184">Mastering phpMyAdmin 2.11 for Effective MySQL Management by Marc Delisle</a><img src="http://www.assoc-amazon.com/e/ir?t=binnva-20&amp;l=as2&amp;o=1&amp;a=1847194184" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />[Affiliate link]&#8216;. This got a bit delayed because of the <a href="http://www.bin-co.com/blog/2008/11/eventr-wordpress-plugin/">plugin week</a>. But I managed to finish the book today &#8211; so here is the review. Bottom line &#8211; most people are using phpMyAdmin for only the most basic operations(editing data, import, export, etc.). If you are one of them, you don&#8217;t need the book &#8211; you already know all you need to know about phpMyAdmin. But <strong class="highlight">other(like me) use it for advanced purposes &#8211; to manage MySQL, create database/tables, run queries, etc. I would recommend you get this book. It covers everything from basic usage(which is a bit boring and should be skipped over) to advanced stuff(like designer view, configuration options, triggers, innoDB relation options etc.)</strong></p>
<p><iframe src="http://rcm.amazon.com/e/cm?t=binnva-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=1847194184&amp;md=10FE9736YVPPT7A0FBG2&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>Its an interesting book &#8211; I found it <strong class="highlight">easily readable if you skip over the basic stuff</strong>. If you think you already know what a section is talking about, skip over to the next section &#8211; that way, you will not be bored. Because it covers the basics in a fairly comprehensive way(think two screenshots per page(!), most of the things in the book you might already know. But there will be some interesting new tips as well. Some tips I found out by reading the book&#8230;.</p>
<ul>
<li>In the phpMyAdmin forms(like say, table creation form or row editing form), you can use the Ctrl+Arrow key combination to move the focus around.</li>
<li>If you create a Query bookmark with the same name as a table, that query will be used when you hit the &#8216;Browse&#8217; tab.</li>
<li>If you are using a blob to store images within the database, there is a way to show the image(Browser Transformations, Chapter 16) in the browse view.</li>
<li>And more&#8230;</li>
</ul>
<p>These are the chapters you should definitely read &#8211; some great tips can be found there&#8230;</p>
<ul>
<li>Chapter 11: Relational System</li>
<li>Chapter 14: Bookmarks</li>
<li>Chapter 16: MIME-Based Transformations</li>
<li>Chapter 18: MySQL 5 Features</li>
</ul>
<h2>Table of Contents</h2>
<p>This should give you an idea of what to expect&#8230;</p>
<ul>
<li><strong>Preface</strong></li>
<li><strong>Chapter 1: Introducing phpMyAdmin</strong>
<ul>
<li>PHP and MySQL: The Leading Open-Source Duo</li>
<li>What is phpMyAdmin?</li>
<li>History</li>
<li>Awards</li>
<li>phpMyAdmin Features Summary</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 2: Installing phpMyAdmin</strong>
<ul>
<li>System Requirements</li>
<li>Downloading the Files</li>
<li>Installation</li>
<li>First Connection Configuration</li>
<li>Multi-Server Configuration</li>
<li>Advanced Authentication</li>
<li>Security</li>
<li>Upgrading phpMyAdmin</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 3: Interface Overview</strong>
<ul>
<li>Panels and Windows</li>
<li>Language Selection</li>
<li>Themes</li>
<li>Left Panel</li>
<li>Right Panel</li>
<li>Query Window</li>
<li>Site-Specific Header and Footer</li>
<li>MySQL Documentation Links</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 4: First Steps</strong>
<ul>
<li>Database Creation</li>
<li>Creating Our First Table</li>
<li>Manual Data Insertion</li>
<li>Browse Mode</li>
<li>Creating an Additional Table</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 5: Changing Data</strong>
<ul>
<li>Edit Mode</li>
<li>Multi-Row Editing</li>
<li>Editing the Next Row</li>
<li>Deleting Data</li>
<li>Deleting Tables</li>
<li>Deleting Databases</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 6: Changing Table Structures</strong>
<ul>
<li>Adding a Field</li>
<li>Editing Field Attributes</li>
<li>TEXT</li>
<li>BLOB (Binary Large Object) Fields</li>
<li>ENUM and SET</li>
<li>DATE, DATETIME, and TIMESTAMP</li>
<li>Bit</li>
<li>Index Management</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 7: Exporting Structure and Data</strong>
<ul>
<li>Dumps, Backups, and Exports</li>
<li>Database Exports</li>
<li>Table Exports</li>
<li>Selective Exports</li>
<li>Multi-Database Exports</li>
<li>Saving the Export File on the Server</li>
<li>Memory Limits</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 8: Importing Structure and Data</strong>
<ul>
<li>Limits for the Transfer</li>
<li>Importing SQL Files</li>
<li>Importing CSV Files</li>
<li>Web Server Upload Directories</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 9: Searching Data</strong>
<ul>
<li>Single-Table Searches</li>
<li>Complete Database Search</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 10: Table and Database Operations</strong>
<ul>
<li>Table Maintenance</li>
<li>Changing Table Attributes</li>
<li>Renaming, Moving, and Copying Tables</li>
<li>Multi-Table Operations</li>
<li>Database Operations</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 11: The Relational System</strong>
<ul>
<li>Relational MySQL?</li>
<li>Linked-Tables Infrastructure</li>
<li>Defining Relations with the Relation View</li>
<li>Defining Relations with the Designer</li>
<li>Benefits of the Defined Relations</li>
<li>Column-Commenting</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 12: Entering SQL Commands</strong>
<ul>
<li>The SQL Query Box</li>
<li>The Query Window</li>
<li>Multi-Statement Queries</li>
<li>Pretty Printing (Syntax-Highlighting)</li>
<li>The SQL Validator</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 13: The Multi-Table Query Generator</strong>
<ul>
<li>Choosing Tables</li>
<li>Column Criteria</li>
<li>Automatic Joins</li>
<li>Executing the Query</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 14: Bookmarks</strong>
<ul>
<li>Creating a Bookmark after a Successful Query</li>
<li>Storing a Bookmark before Sending a Query</li>
<li>Multi-Query Bookmarks</li>
<li>Recalling from the Bookmarks List</li>
<li>Public Bookmarks</li>
<li>The Default Initial Query for a Table</li>
<li>Bookmark Parameters</li>
<li>Executing Bookmarks by Browsing the pma_bookmark Table</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 15: System Documentation</strong>
<ul>
<li>The Database Print View</li>
<li>The Selective Database Print View</li>
<li>The Table Print View</li>
<li>The Data Dictionary</li>
<li>Relational Schema in PDF</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 16: MIME-Based Transformations</strong>
<ul>
<li>The MIME Column&#8217;s Settings</li>
<li>Requirements for Image Generation</li>
<li>Examples of Transformations</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 17: Character Sets and Collations</strong>
<ul>
<li>Language Files and UTF-8</li>
<li>Versions of MySQL Prior to 4.1.x</li>
<li>MySQL 4.1.x and Later</li>
<li>Kanji Support</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 18: MySQL 5.0 Features</strong>
<ul>
<li>Observations on the History of MySQL 5.</li>
<li>Views</li>
<li>Routines: Stored Procedures and Functions</li>
<li>Triggers</li>
<li>Information_schema</li>
<li>Profiling</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 19: MySQL Server Administration</strong>
<ul>
<li>Entering the Server View</li>
<li>Database Information</li>
<li>Server Operations</li>
<li>Summary</li>
</ul>
</li>
<li><strong>Chapter 20: Troubleshooting and Support</strong>
<ul>
<li>System Requirements</li>
<li>Base Configuration</li>
<li>Solving Common Errors</li>
<li>Seeking Support</li>
<li>Contributing to the Project</li>
<li>Future phpMyAdmin Versions</li>
<li>Summary</li>
<li>Index</li>
</ul>
<p>A final advice before leaving &#8211; buy the <a href="http://www.wordspy.com/1996/09/dead-tree-editi.html">dead tree edition</a> if possible. The ebook(PDF) has DRM which makes it very hard to read. You have to <strong class="highlight">enter the password every single time you open</strong> the file. Its really annoying after a while.</p>
<h2>My Other phpMyAdmin Posts</h2>
<ul>
<li><a href="http://binnyva.blogspot.com/2006/08/installing-phpmyadmin-28.html">Installing phpMyAdmin 2.8</a></li>
<li><a href="http://binnyva.blogspot.com/2006/08/phpmyadmin-tips-and-tricks-database.html">phpMyAdmin Tips and Tricks &#8211; Database Backup and Restore</a></li>
<li><a href="http://binnyva.blogspot.com/2006/08/installing-and-configuring-phpmyadmin.html">Installing and Configuring phpMyAdmin</a></li>
<li><a href="http://binnyva.blogspot.com/2006/08/managing-databases-with-mysql-clients.html">Managing Databases with MySQL Clients &#8211; phpMyAdmin</a></li>
</ul>
<h2>Related Links</h2>
<ul>
<li><a href="http://www.packtpub.com/files/Mastering-phpMyAdmin-2-11-for-Effective-MySQL-Management-Sample-Chapter-Chapter-Table-and-Database-Operations.pdf">Sample Chapter: Table and Database Operations</a></li>
<li><a href="http://www.packtpub.com/phpmyadmin-3rd-edition/book">Mastering phpMyAdmin Book Details</a></li>
<li><a href="http://verens.com/archives/2008/04/26/review-mastering-phpmyadmin-211-for-effective-mysql-management/">review: Mastering phpMyAdmin 2.11 for Effective MySQL Management</a></li>
<li><a href="http://blogs.linux.ie/kenguest/2008/05/12/book-review-mastering-phpmyadmin-211-for-effective-mysql-management-by-marc-delisle/">Book review: “Mastering phpMyAdmin 2.11 for Effective MySQL Management” by Marc Delisle</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/11/mastering-phpmyadmin-a-review/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Remote Database Backup WordPress Plugin</title>
		<link>http://www.bin-co.com/blog/2008/10/remote-database-backup-wordpress-plugin/</link>
		<comments>http://www.bin-co.com/blog/2008/10/remote-database-backup-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 16:43:10 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=135</guid>
		<description><![CDATA[My second WordPress Plugin - <a href="http://www.bin-co.com/tools/wordpress/plugins/db_backup/">Remote Database Backup</a>. Its is based on the <a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup plugin</a>. If you are a regular wordpress user, you might be better off using WordPress Database Backup plugin instead of my version. But if you, like me, have a local server on your system and has a copy of your site on the local server as well as the online server, you will find great use for my plugin.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/10/wordpress_logo.png" alt="" title="Wordpress Logo" width="183" height="145" class="alignnone size-full wp-image-136 intro" align="right" /></p>
<p class="intro">I have released my second WordPress Plugin &#8211; <a href="http://www.bin-co.com/tools/wordpress/plugins/db_backup/">Remote Database Backup</a>. Its is based on the <a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup plugin</a>. If you are a regular wordpress user, you might be better off using WordPress Database Backup plugin instead of my version. But if you, like me, have a local server on your system and has a copy of your site on the local server as well as the online server, you will find great use for my plugin.</p>
<p>My plugin is designed to make it possible to remotely create and download wordpress database backup in form of SQL dumps. You can then use these dumps to sync the local version of your site with the online version.</p>
<p><img src="http://www.bin-co.com/tools/wordpress/plugins/db_backup/db_backup.png" alt="Remote Database Backup Screenshot" /></p>
<h2>Backuping your WordPress Database</h2>
<ul>
<li>Install Remote Database Backup Plugin in WordPress</li>
<li>Login to WordPress site</li>
<li>Go to the Backup Page(Manage &gt; DB Backup)</li>
<li>Create a backup</li>
<li>Download the backup file to your system</li>
</ul>
<h3>Sync With Local Server</h3>
<p>And if you have a local version of your site, you can sync it with the online site using the backup file. Just follow these steps&#8230;</p>
<ul>
<li>Extract the backup file(its in the tar.gz format)</li>
<li><a href="http://txt.binnyva.com/2007/03/mysql-database-backuprestore/">Import it into your mysql database</a>.</li>
<li>Make some changes to the database(like set the home url) so that wordpress works locally</li>
</ul>
<h2>Automation Script</h2>
<p>You can do all these steps manually &#8211; or you can use the <a href="http://www.bin-co.com/blog/wp-content/uploads/2008/10/backup.txt">automation script</a> I have cooked up. You need PHP installed in your system for this to work(I assume you already have PHP if you have a local version of wordpress).</p>
<p>To use the script, first install the plugin. Then download <a href="http://www.bin-co.com/blog/wp-content/uploads/2008/10/backup.txt">the script</a> and rename it to &#8216;backup.php&#8217;(the extension must be &#8216;php&#8217; instead of &#8216;txt&#8217;. Now open it in your favorite editor and change the variables to match your site. You can run it by opening a terminal/command prompt and navigating to that folder and executing the command &#8216;php backup.php&#8217;. This will automatically make a backup and sync it with your local database.</p>
<h2>Need Feedback</h2>
<p>Let me know how it works for you if you are installing the plugin &#8211; its the first release &#8211; so I need some feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/10/remote-database-backup-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>Installing LAMP(Apache Web Server/PHP/MySQL) in Debian/Ubuntu</title>
		<link>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/</link>
		<comments>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 19:10:07 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=125</guid>
		<description><![CDATA[Installing the <abbr title="Linux Apache MySQL PHP">LAMP</abbr> environment on a Linux system is easy if you are comfortable with using the native package management software. If you on a Red Hat/Fedora/CentOS system, that will be yum - and for Debian/Ubuntu systems, that will be apt. This tutorial shows you how to install Apache 2, PHP 5 and MySQL 5 in Debian using apt.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/lava_lamp.jpg" alt="LAMP - Linux, Apache, MySQL, PHP" title="Lamp" width="232" height="294" class="size-full wp-image-128 intro" align="right" /></p>
<p class="intro">Installing the <abbr title="Linux Apache MySQL PHP">LAMP</abbr> environment on a Linux system is easy if you are comfortable with using the native package management software. If you on a Red Hat/Fedora/CentOS system, that will be yum &#8211; and for Debian/Ubuntu systems, that will be apt. This tutorial shows you how to install Apache 2, PHP 5 and MySQL 5 in Debian using apt.</p>
<p>Before installation, a few points to remember. These instruction are not for a production environment &#8211; this is for a development environment. To install the software, you need root access. You can get that using this command&#8230;</p>
<pre><code class="cli">su -
[Enter root password]</code></pre>
<h2>Installing Apache 2</h2>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/apache.png" alt="" title="Apache Logo" width="230" height="90" class="alignnone size-full wp-image-126" align="right" /></p>
<p>Use this command to install Apache 2.</p>
<pre><code class="javascript">apt-get install apache2</code></pre>
<p>Make sure you specify &#8216;apache2&#8242; &#8211; or else, apache 1.3 will be installed.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/php-logo.png" alt="PHP Logo" title="PHP Logo" width="179" height="98" class="alignnone size-full wp-image-123" align="right" /></p>
<h2>Install PHP 5</h2>
<p>Now, install the PHP 5 packages&#8230;</p>
<pre><code class="javascript">apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi</code></pre>
<p>No go to the folder <code>/etc/apache2/sites-enabled/</code> and edit the file in that directory(usually 000-default). Find the line that says<br />
<code>RedirectMatch ^/$ /apache2-default/</code><br />
and remove it.</p>
<p>Now your document root is <code>/var/www/</code> &#8211; place all your HTML documents and scripts in this folder. If you want to make some other configuration changes, edit the configuration files at <code>/etc/apache2/apache2.conf</code></p>
<p>I also had to make the following changes&#8230;</p>
<ul>
<li>Changed the owner of <code>/var/log/apache2</code> to www-data &#8211; I used the command <code>chown www-data:www-data apache2</code></li>
<li>Created an empty file at <code>/etc/apache2/httpd.conf</code></li>
</ul>
<p>This was to fix a few errors I saw on my system &#8211; you may not have to do it.</p>
<h2>Install MySQL</h2>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/09/mysql_logo.gif" alt="" title="MySQL Logo" width="150" height="98" class="alignnone size-full wp-image-127" align="right" /></p>
<p>This is the command to install MySQL server, its client and PHP&#8217;s MySQL libraries&#8230;</p>
<pre><code class="javascript">apt-get install mysql-client mysql-common mysql-server php5-mysql</code></pre>
<p>Finally, Install the other packages you need as well</p>
<pre><code class="javascript">apt-get install php5-sqlite php5-gd ...</code></pre>
<h2>Testing the System</h2>
<p>Go to your document root(<code>/var/www</code>) and create a php files called &#8216;info.php&#8217; and put this code inside that&#8230;</p>
<pre><code class="php">&lt;?php
php<!-- PHP bug -->info();

</code></pre>
<h3>Start the Servers</h3>
<p>First, turn on the MySQL database server&#8230;</p>
<pre><code class="javascript">/etc/init.d/mysql start</code></pre>
<p>Then, start the Apache Web Server&#8230;</p>
<pre><code class="javascript">/etc/init.d/apache2 start</code></pre>
<p>Now fire up a browser and go to <a href="http://localhost/">localhost</a> &#8211; you should see a file listing page with a &#8216;info.php&#8217; in the list. Click on that link &#8211; if you see a PHP information page, your web server is setup correctly.</p>
<p>To make sure MySQL-PHP connection is working, <a href="http://www.bin-co.com/database/clients/phpmyadmin/installing_phpmyadmin.php">install phpMyAdmin</a> &#8211; or write a database connection script &#8211; whatever is easier for you.</p>
<h2>Related Links</h2>
<ul>
<li><a href="http://www.thegeekstuff.com/2008/09/how-to-install-or-upgrade-lamp-apache-mysql-and-php-stack-on-linux-using-yum/">How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum</a></li>
<li><a href="http://www.debianadmin.com/apache2-installation-and-configuration-with-php-support-in-debian-linux.html">Apache2 installation and configuration with php support</a></li>
<li><a href="http://www.debianadmin.com/install-and-configure-apache2-with-php5-and-ssl-support-in-debian-etch.html">Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch</a></li>
<li><a href="http://www.adobe.com/devnet/dreamweaver/articles/lamp.html">Setting Up Your PHP Server Environment Using Linux, Apache, MySQL, and PHP</a></li>
<li><a href="http://www.mysql-apache-php.com/">Quick Linux Server w/ Apache+PHP+MySQL</a></li>
<li><a href="http://www.debianhelp.co.uk/lamp.htm">LAMP (Linux Apache Mysql PHP) Configuration and Installing in Debian</a></li>
<li><a href="http://lamphowto.com/">HOWTO: Installing MySQL and Apache with PHP support on Linux</a></li>
<li><a href="http://www.kewanshunn.com/articles/how_to_install_apache2,_php5,_mysql5_on_redhat/3.html">How to install Apache2, PHP5, MySQL5 on RedHat</a></li>
</ul>
<p><strong>Shameless Plug</strong>: If you are a Linux user, you may want to check out my <a href="http://lindesk.com/">Linux Blog &#8211; LinDesk</a> &#8211; its about Linux on the Desktop &#8211; Articles, Application Reviews and Tutorials about many aspects of Linux included configuration and scripting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/09/installing-lampapache-web-serverphpmysql-in-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Document Formats</title>
		<link>http://www.bin-co.com/blog/2008/04/document-formats/</link>
		<comments>http://www.bin-co.com/blog/2008/04/document-formats/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 18:20:39 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2008/04/document-formats/</guid>
		<description><![CDATA[In FLOSS circles, March 26 is celebrated as the Document Freedom Day. Document Freedom Day (DFD) is a global day for document liberation. It will be a day of grassroots effort to educate the public about the importance of Free Document Formats and Open Standards in general. This is when I realized that people actually [...]]]></description>
			<content:encoded><![CDATA[<p><img class="intro" align="right"  src='http://www.bin-co.com/blog/wp-content/uploads/2008/04/documents.jpg' alt='Documents' /></p>
<p class="intro">In FLOSS circles, March 26 is celebrated as the <a href="http://www.documentfreedom.org/">Document Freedom Day</a>. </p>
<blockquote><p>Document Freedom Day (DFD) is a global day for document liberation. It will be a day of grassroots effort to educate the public about the importance of Free Document Formats and Open Standards in general.</p></blockquote>
<p>This is when I realized that people actually use the office packages daily. I almost never use it. According to me there are three options to store text data.</p>
<ul>
<li>Plain Text</li>
<li>HTML</li>
<li>Database</li>
</ul>
<h2>Plain Text</h2>
<p>The <strong class="highlight">simplest format</strong> there is. If there is something I should remember, I just put it in a text file and save it to the desktop. I used to use it a lot earlier &#8211; but I don&#8217;t use it much nowadays due to searchability issues. There are quite a few <a href="http://ifacethoughts.net/2007/09/27/we-need-more-txt/">advantages in using the text format</a></p>
<h2>HTML</h2>
<p>If I <strong class="highlight">need any formatting in the text, I create the document in HTML</strong>. It is easier for me to create the formatting using HTML code that using WYSIWYG Word Processors(like MS Word). I write all my blog posts in HTML &#8211; perhaps the only occasion where I need formatting.</p>
<h3>Database</h3>
<p>My favorite method to store text data is in a database. I am a web developer &#8211; so I always have a Web Server and Database server running on my system &#8211; so this system is perfect for me. </p>
<h3>Interface</h3>
<p>Remove that scared look on your face &#8211; I don&#8217;t use <a href="http://binnyva.blogspot.com/2006/08/managing-databases-with-mysql-clients.html">phpMyAdmin</a> or any Database Administration tools as the interface to save/view the data. I use my own custom scripts or WordPress.</p>
<p>The best example of this is <a href="http://txt.binnyva.com/">txt</a>. Txt is my code snippets/commands repository. You can view the full story in the <a href="http://binnyva.blogspot.com/2007/03/saving-code-snippets-part-2.html">Saving Code Snippets</a> post.</p>
<p>That&#8217;s an online example &#8211; I also have a personal wordpress blog running in my local server. I use it to record events, purchases, store receipts etc.</p>
<h3>Advantages</h3>
<dl>
<dt>Tagging</dt>
<dd><strong class="highlight">Tagging is heaven-sent to make information more findable</strong> &#8211; any del.icio.us user should know that. I used to install Ultimate Tag Warrior to get this feature &#8211; but WordPress now supports tags natively.</dd>
<dt>Searching</dt>
<dd><strong class="highlight">Searching for data within a database is much more easier, faster and provides more relevent results</strong> than searching for the data in a collection of file. Even if you are using a file indexing software like Google Desktop Search or Beagle/<a href="http://lindesk.com/2007/04/desktop-searching-in-linux-with-recoll/">Recoll</a>(for linux users), I find database searching more easier. Another advantage of using database to search is that you can <strong class="highlight">create complex queries if you know SQL</strong>.</dd>
</dl>
<h3>Disadvantages</h3>
<dl>
<dt>Not for everyone</dt>
<dd>Let&#8217;s face it &#8211; installing and maintaining a web/database server is a tad in the geek zone. An average Joe will find it just a little bit out of their league.</dd>
<dt>Overhead</dt>
<dd>Running a web server and a database server is a bit demanding on the RAM.</dd>
<dt>Backing up a little more complicated &#8211; but easier</dt>
<dd><a href="http://txt.binnyva.com/2007/03/mysql-database-backuprestore/">Backing up the data in a Database</a> is not as straight forward as backing up files &#8211; but its actually easier if you know how.</dd>
</dl>
<h2>Online</h2>
<p>One extra method to store the data &#8211; online.  This <strong class="highlight">data is stored in a database &#8211; but you don&#8217;t have the disadvantages associated with using a database</strong>. More and more people are turning to this method now. I did not include it in the initial list because its not a data format &#8211; its more of a data storing method.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/04/document-formats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Simple Steps to create a Web Installer</title>
		<link>http://www.bin-co.com/blog/2007/07/3-simple-steps-to-create-a-web-installer/</link>
		<comments>http://www.bin-co.com/blog/2007/07/3-simple-steps-to-create-a-web-installer/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 16:00:48 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/07/3-simple-steps-to-create-a-web-installer/</guid>
		<description><![CDATA[Creating a web installer is not hard &#8211; as a matter of fact &#8211; it is downright easy. You just have to know a few things. Get the database details, create the database, save the details. That&#8217;s it! Getting Database Details A simple four field form will suffice. The important thing to remember is that [...]]]></description>
			<content:encoded><![CDATA[<p class="intro"><a href="http://www.bin-co.com/blog/2007/07/web-application-installer/">Creating a web installer</a> is not hard &#8211; as a matter of fact &#8211; it is downright easy. You just have to know a few things. <strong class="highlight">Get the database details, create the database, save the details</strong>. That&#8217;s it!</p>
<h2>Getting Database Details</h2>
<p><a href='http://www.bin-co.com/blog/wp-content/uploads/2007/07/nexty.png' title='Nexty Installer Screenshot'><img src='http://www.bin-co.com/blog/wp-content/uploads/2007/07/nexty.thumbnail.png' alt='Nexty Installer Screenshot' /></a></p>
<p>A simple four field form will suffice. The important thing to remember is that the <strong class="highlight">data must be saved as session variables</strong> &#8211; as we are using a multi-page form.</p>
<p>As soon as you get the DB details, try to <strong class="highlight">connect to the database and confirm that the DB details is correct</strong>. If the connection attempt fails, take the user back to the DB details form. Else go to step two.</p>
<h2>Insert Initial Data</h2>
<p>This part is easy &#8211; just <strong class="highlight">run a bunch of SQL statements to create the necessary table structure and insert the initial data</strong>.</p>
<h2>Save the Details</h2>
<p>This should be the last step of the installation. Just take all the data from the session variables and <strong class="highlight">write it to a file, say &#8216;configuration.php&#8217;</strong>. Write the data as PHP code &#8211; so all you have to do to retrieve the data is include the file.</p>
<p>The code for the installer in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/07/3-simple-steps-to-create-a-web-installer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

