<?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>Kurinchi Blogger Scribbles ... &#187; Linux Database</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/category/linux/linux-database/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Mysql: Test database</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/07/mysql-test-database.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/07/mysql-test-database.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:51:32 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Linux Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[test database]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=480</guid>
		<description><![CDATA[Ever wondered why there is a &#8220;test&#8221; database in the list of tables when you install MySQL. This is to allow users to practice MySQL commands or execute complex queries on the database. &#8220;test&#8221; database is accessible to everyone who has access to MySQL in your localhost and hence is not advisable if you were [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered why there is a &#8220;test&#8221; database in the list of tables when you install MySQL.</p>
<p>This is to allow users to practice MySQL commands or execute complex queries on the database. </p>
<p>&#8220;test&#8221; database is accessible to everyone who has access to MySQL in your localhost and hence is not advisable if you were to use it for your development.<span id="more-480"></span></p>
<p>Instead, create a database with specific user privileges if you have user rights or request your administrator to create one for you.</p>
<p>A simple MySQL statement to create a user with all privileges to the database.</p>
<p>$ grant all on newdb.* to &#8216;newdbuser&#8217;@localhost identified by &#8216;newdbuser_password&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/07/mysql-test-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows command prompt mysql start stop</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/01/windows-command-prompt-mysql-start-stop.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/01/windows-command-prompt-mysql-start-stop.html#comments</comments>
		<pubDate>Tue, 20 Jan 2009 23:58:32 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Linux Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[mysql start]]></category>
		<category><![CDATA[mysql stop]]></category>
		<category><![CDATA[windows mysql]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=243</guid>
		<description><![CDATA[To start MySQL service from Windows command prompt c:\mysql\bin&#62; net start mysql To stop MySQL service from Windows command prompt c:\mysql\bin&#62; net stop mysql]]></description>
			<content:encoded><![CDATA[<p><strong>To start MySQL service from Windows command prompt</strong></p>
<p>c:\mysql\bin&gt; net start mysql</p>
<p><strong>To stop MySQL service from Windows command prompt</strong></p>
<p>c:\mysql\bin&gt; net stop mysql</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/01/windows-command-prompt-mysql-start-stop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL vs. PostgreSQL &#8211; Comparison</title>
		<link>http://kurinchilamp.kurinchilion.com/2008/12/mysql-vs-postgresql-comparison.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2008/12/mysql-vs-postgresql-comparison.html#comments</comments>
		<pubDate>Wed, 31 Dec 2008 15:21:30 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Linux Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[MySQL vs. PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=105</guid>
		<description><![CDATA[There had often been talks and some times flame wars when there had been comparison between MySQL and PostgreSQL. Each database has its own strength and weaknesses. As an initiative, I thought to do a little research on this topic and to list down the common points gathered in a tabular format. Comparison MySQL PostgreSQL [...]]]></description>
			<content:encoded><![CDATA[<p>There had often been talks and some times flame wars when there had been comparison between MySQL and PostgreSQL. Each database has its own strength and weaknesses. As an initiative, I thought to do a little research on this topic and to list down the common points gathered in a tabular format. <span id="more-105"></span></p>
<table border="1">
<colgroup span="1">
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
</colgroup>
<tbody>
<tr>
<td><span><strong>Comparison</strong></span></td>
<td><span><strong></strong></span></td>
<td><span><strong>MySQL</strong></span></td>
<td><span><strong>PostgreSQL</strong></span></td>
</tr>
<tr>
<td><code>License</code></td>
<td></td>
<td><code>GPL/proprietary license. Those not wanting to abide to those terms may buy a proprietary license from MySQL Inc. </code></td>
<td><code>BSD-like license</code></td>
</tr>
<tr>
<td><code>Redistribution</code></td>
<td></td>
<td><code>Any redistribution of the binaries must be accompanied by the source code from which they are derived, whether original or modified</code></td>
<td><code>Binaries and source code are available free of charge</code></td>
</tr>
<tr>
<td><code>SQL Standard compliance </code></td>
<td></td>
<td><code>MySQL had many problems with SQL standard compliance. It was only from ver. 4 they started supporting transactions/foreign keys. Cases of data loss in </code></td>
<td><code>In comparison, PostgreSQL complies to SQL standard and has extensive list of features to support</code></td>
</tr>
<tr>
<td>Speed</td>
<td></td>
<td><code>MySQL''s main concentration was on speed when it was developed. Even then, it happens only if there is low level of concurrent users. When the load increases it has a drastic impact on MySQL </code></td>
<td><code>Postgre adheres to ACID model and scales well when the number of concurrent users increase. </code></td>
</tr>
<tr>
<td><code>Support</code></td>
<td></td>
<td><code>User base for MySQL is more and there are more web hosting companies offering MySQL in comparison. Hence there are more forums to solve your problems when in need.</code></td>
<td><code>PostgreSQL has equivalent number of mailing list offering support and a list of commercial companies offering their services</code></td>
</tr>
<tr>
<td>Interface</td>
<td></td>
<td><code>phpMyAdmin</code></td>
<td><code>phpPgAdmin</code></td>
</tr>
</tbody>
</table>
<p>The list will continue to grow &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2008/12/mysql-vs-postgresql-comparison.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL database optimisation series &#8211; Right MySQL Data type</title>
		<link>http://kurinchilamp.kurinchilion.com/2008/12/mysql-database-optimisation-series-right-mysql-data-type.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2008/12/mysql-database-optimisation-series-right-mysql-data-type.html#comments</comments>
		<pubDate>Mon, 29 Dec 2008 07:00:29 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Linux Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[data base optimisation]]></category>
		<category><![CDATA[MySQL datatype]]></category>
		<category><![CDATA[numeric data type mysql]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=94</guid>
		<description><![CDATA[Numeric Data type in MySQL Choosing the right data type can create significant improvement in application performance. Many programmers/developers who opt to choose MySQL as the backend for their operations often fail miserably in choosing the most efficient data types. MySQL Numeric Data type: Type Bytes Minimum Maximum     (Signed/Unsigned) Signed/Unsigned) TINYINT 1 -128 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Numeric Data type in MySQL</strong></p>
<p>Choosing the right data type can create significant improvement in application performance.</p>
<p>Many programmers/developers who opt to choose MySQL as the backend for their operations often fail miserably in choosing the most efficient data types. <span id="more-94"></span></p>
<p>MySQL Numeric Data type:</p>
<table border="1">
<colgroup span="1">
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
</colgroup>
<tbody>
<tr>
<td><span><strong>Type</strong></span></td>
<td><span><strong>Bytes</strong></span></td>
<td><span><strong>Minimum</strong></span></td>
<td><span><strong>Maximum</strong></span></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><span><strong>(Signed/Unsigned)</strong></span></td>
<td><span><strong>Signed/Unsigned)</strong></span></td>
</tr>
<tr>
<td><code>TINYINT</code></td>
<td>1</td>
<td><code>-128</code></td>
<td><code>127</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><code>0</code></td>
<td><code>255</code></td>
</tr>
<tr>
<td><code>SMALLINT</code></td>
<td>2</td>
<td><code>-32768</code></td>
<td><code>32767</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><code>0</code></td>
<td><code>65535</code></td>
</tr>
<tr>
<td><code>MEDIUMINT</code></td>
<td>3</td>
<td><code>-8388608</code></td>
<td><code>8388607</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><code>0</code></td>
<td><code>16777215</code></td>
</tr>
<tr>
<td><code>INT</code></td>
<td>4</td>
<td><code>-2147483648</code></td>
<td><code>2147483647</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><code>0</code></td>
<td><code>4294967295</code></td>
</tr>
<tr>
<td><code>BIGINT</code></td>
<td>8</td>
<td><code>-9223372036854775808</code></td>
<td><code>9223372036854775807</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><code>0</code></td>
<td><code>18446744073709551615</code></td>
</tr>
</tbody>
</table>
<p>To explain the above table a bit more, let us take the first row where it gives the values for &#8220;Tinyint&#8221; data type. It states &#8220;Bytes&#8221; = 1 which means TINYINT data type has 1 Byte which is equal to 8 bits (n = 8). Maximum signed value for TINYINT is given to be 127 and the calculation for it is [2^(n-1) - 1] = [2^(8-1) - 1]</p>
<p>To test the maximum value for TINYINT data type in MySQL try creating a table with a column whose data type is TINYINT. Then try inserting into TINYINT field the following values 126, 127 and 128 to know the difference.</p>
<p>On inserting the value 128 into TINYINT field you will get the following warning message and the value resets to 127<br />
Warning: #1264 Out of range value adjusted for column &#8216;mytinyintcolumn&#8217; at row 1</p>
<p>When declaring the table, we assign the value TINYINT(2). Some may not understand what that &#8220;2&#8243; is for. This is the value for padding to the left during display. Set the attribute to ZEROFILL and then try testing with different combinatios for &#8220;value&#8221; field and you will be able to notice the way the display is affected with different left-padding settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2008/12/mysql-database-optimisation-series-right-mysql-data-type.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin &#8211; visual interface for MySQL on Windows/Linux</title>
		<link>http://kurinchilamp.kurinchilion.com/2008/12/phpmyadmin-visual-interface-for-mysql-on-windowslinux.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2008/12/phpmyadmin-visual-interface-for-mysql-on-windowslinux.html#comments</comments>
		<pubDate>Wed, 24 Dec 2008 20:24:34 +0000</pubDate>
		<dc:creator>kurinchiblogger</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[SELinux AVC denial]]></category>

		<guid isPermaLink="false">http://kurinchiblogger.wordpress.com/?p=78</guid>
		<description><![CDATA[phpMyAdmin is a web based interface to MySQL which is written using PHP for Administration of databases. Visual interface provided is intuitive and it saves time for the developers. (ver 3.1.1 is the recommended version as of this writing which runs on PHP 5/MySQL 5) Step 1: First we need to check MySQL is installed [...]]]></description>
			<content:encoded><![CDATA[<p>phpMyAdmin is a web based interface to MySQL which is written using PHP for Administration of databases. Visual interface provided is intuitive and it saves time for the developers. (ver 3.1.1 is the recommended version as of this writing which runs on PHP 5/MySQL 5)</p>
<p><strong>Step 1: </strong>First we need to check MySQL is installed by issuing the following command<br />
[root@user Desktop]# which mysql</p>
<p>If you get &#8230;<br />
/usr/bin/mysql<br />
then, it is an indication that MySQL is installed in your machine.<span id="more-78"></span></p>
<p>If you get &#8230;<br />
which: no mysql in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)</p>
<p>This will give an indication if MySQL is installed or not. If it is not installed then issue<br />
[root@user Desktop]# yum install mysql</p>
<p><strong>Step 2: </strong>Then check if PHP installed by issuing the command<br />
[root@user Desktop]# which php</p>
<p>If you get &#8230;<br />
/usr/bin/php<br />
then, it is an indication that PHP is installed in your machine.</p>
<p>To get the version of PHP installed in your machine, type<br />
[root@user Desktop]# php &#8211;version</p>
<p>If php is not installed then type<br />
[root@user Desktop]# yum install php</p>
<p><strong>Step 3:</strong> phpMyAdmin pre-configuration steps<br />
[root@user Desktop]# yum install php-gd php-mcrypt php-mbstring<br />
We first install a set of Apache HTTP Server modules required for phpMyAdmin</p>
<p><strong>Download location for phpMyAdmin</strong></p>
<p>http://www.phpmyadmin.net/home_page/downloads.php</p>
<p><strong>Step 4:</strong> phpMyAdmin configuration on CentOS/RedHat<br />
Create the configuration file by typing the following command<br />
[root@user Desktop]# cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php</p>
<p>Edit the configuration settings of phpMyAdmin<br />
[root@user Desktop]# vi /var/www/html/phpMyAdmin/config.inc.php</p>
<p>The following is a basic setting for phpMyAdmin configuration. You can play with the below setting<br />
by assigning user name, password or setting the authentication type to &#8216;cookie&#8217; instead of &#8216;http&#8217; or<br />
having a different folder setting for saving/loading files.</p>
<p>/* Authentication type */<br />
$cfg['Servers'][$i]['auth_type'] = &#8216;http&#8217;;<br />
/* Server parameters */<br />
$cfg['Servers'][$i]['host'] = &#8216;localhost&#8217;;<br />
$cfg['Servers'][$i]['connect_type'] = &#8216;tcp&#8217;;<br />
$cfg['Servers'][$i]['compress'] = true;<br />
/* Select mysqli if your server has it */<br />
$cfg['Servers'][$i]['extension'] = &#8216;mysql&#8217;;<br />
/* User for advanced features */<br />
$cfg['Servers'][$i]['controluser'] = &#8221;;<br />
$cfg['Servers'][$i]['controlpass'] = &#8221;;<br />
.<br />
.<br />
.<br />
.<br />
/*<br />
* Directories for saving/loading files from server<br />
*/<br />
$cfg['UploadDir'] = &#8216;tmp&#8217;;<br />
$cfg['SaveDir'] = &#8216;tmp&#8217;;</p>
<p><strong>Step 5:</strong> Permission settings for the configuration file &#8211; phpMyAdmin<br />
After making the necessary changes, type the following command change the permission of the<br />
configuration file to not allow world to read or write.<br />
[root@user Desktop]# chmod -R 0750 /var/www/html/phpMyAdmin/config.inc.php</p>
<p><strong>ERROR 1:</strong><br />
If you had moved phpMyAdmin extracted folder into /var/www/html/phpMyAdmin you might get a message (<em>SELinux: AVC denial error</em>),</p>
<p>SELinux is preventing the httpd from using potentially mislabeled files (/var/www/html/phpMyAdmin).</p>
<p>In the above case, type<br />
[root@user Desktop]# restorecon -R -v &#8216;/var/www/html/phpMyAdmin&#8217;</p>
<p>Now browse to the folder, http://localhost/phpMyAdmin and the you should be able to see phpMyAdmin<br />
interface.</p>
<p>If there are any version conflicts related to PHP, those get shown for you now. Depending on the<br />
PHP version, that is intalled in your machine, you can download the related phpMyAdmin</p>
<p><strong>ERROR 2:</strong><br />
If you have not set a password for the default &#8216;root&#8217; account when you installed MySQL, you will<br />
get the error &#8220;Your configuration file contains settings (root with no password) that corresponds to<br />
the default MySQL privileged account. Your MySQL server is running with this default, is open to<br />
intrusion, and you really should fix this security hole.&#8221;</p>
<p>If this is the case then follow the below set of instructions<br />
[root@user Desktop]# mysql -uroot<br />
mysql&gt; set password for &#8216;root&#8217;@'localhost&#8217; password = PASSWORD(&#8216;your_password&#8217;);<br />
mysql&gt; quit;</p>
<p>This will remove the error message that will see in the phpMyAdmin interface when default password<br />
for the &#8216;root&#8217; user is not set.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2008/12/phpmyadmin-visual-interface-for-mysql-on-windowslinux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

