<?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>Rochak Chauhan::Unpredictably Exciting &#187; MySQL</title>
	<atom:link href="http://rochakchauhan.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://rochakchauhan.com/blog</link>
	<description>Know your limits, but never stop trying to exceed them.</description>
	<lastBuildDate>Thu, 03 May 2012 11:48:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Buying MySQL Could save Sun</title>
		<link>http://rochakchauhan.com/blog/2008/01/17/buying-mysql-could-save-sun/</link>
		<comments>http://rochakchauhan.com/blog/2008/01/17/buying-mysql-could-save-sun/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 20:10:06 +0000</pubDate>
		<dc:creator>rochakchauhan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://rochakchauhan.com/blog/2008/01/17/buying-mysql-could-save-sun/</guid>
		<description><![CDATA[We knew that Sun (JAVA) has been lusting after a real software business in addition to Solaris. We knew that Sun &#8220;shares&#8221; &#8212; that it digs open source, including Solaris and Java. And we knew that Sun had a love-hate relationship with Oracle (ORCL) and a hate-hate relationship with IBM (IBM) and Microsoft (MSFT). So &#8230; <a class="read-excerpt" href="http://rochakchauhan.com/blog/2008/01/17/buying-mysql-could-save-sun/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p id="article_body">We knew that Sun (<a href="http://seekingalpha.com/symbol/java" title="More opinion and analysis of JAVA">JAVA</a>) has been lusting after a real software business in addition to Solaris. We knew that Sun &#8220;shares&#8221; &#8212; that it digs open source, including Solaris and Java. And we knew that Sun had a love-hate relationship with Oracle (<a href="http://seekingalpha.com/symbol/orcl" title="More opinion and analysis of ORCL">ORCL</a>) and a hate-hate relationship with IBM (<a href="http://seekingalpha.com/symbol/ibm" title="More opinion and analysis of IBM">IBM</a>) and Microsoft (<a href="http://seekingalpha.com/symbol/msft" title="More opinion and analysis of MSFT">MSFT</a>).<span id="more-103"></span></p>
<p>So toss this all in a big pot, put on simmer and you get a logical &#8212; if not three years too late &#8212; stew: Sun Microsystems <a href="http://www.sun.com/aboutsun/media/presskits/2008-0116/index.jsp?intcmp=hp2008jan16_mysql_learn">intends to buy MySQL AB</a> and its very popular open source database. <a href="http://blogs.sun.com/jonathan/entry/winds_of_change_are_blowing">The announcement</a> comes Wednesday with a <a href="http://www.news.com/8301-10784_3-9851644-7.html">hefty price tag of $1 billion.</a></p>
<p>The MySQL purchase by Sun makes more sense than any other acquisition they have done since they botched NetDynamics 10 years ago. This could be what saves Sun.</p>
<p>Sun can make a lot of mischief with this one, by taking some significant oxygen out of its competitors&#8217; core database revenues. Sun can package MySQL with its other software (and sell some hardware and storage, to boot), with the effect that the database can drive the sales of operating systems, middleware and perhaps even tools. Used to be the other way around, eh? Fellow blogger <a href="http://blogs.zdnet.com/BTL/?p=7611">Larry Dignan sees synergies, too.</a> And <a href="http://www.onstrategies.com/blog/?p=253">Tony Baer has some good points.</a></p>
<p>Who could this hurt if Sun executes well? IBM, Oracle, Microsoft, Sybase (<a href="http://seekingalpha.com/symbol/sy" title="More opinion and analysis of SY">SY</a>), Red Hat (<a href="http://seekingalpha.com/symbol/rht" title="More opinion and analysis of RHT">RHT</a>), Ingres. It could hurt Microsoft and SQL Server the most. Sun could hasten the tipping point for the <a href="http://briefingsdirectblog.blogspot.com/2007/10/oracle-users-enjoy-open-source-benefits.html">commercial relational database to go commodity</a>, like Linux did to operating systems like Unix/Solaris. Sun could far better attract developers to a data services fabric efficiency than with its tools-middleware-Solaris stack alone. As we recently saw, with <a href="http://seekingalpha.com/article/59544-why-isn-t-microsoft-more-proactive-in-acquisitions">Microsoft buying Fast Search &amp; Transfer</a>, the lifecycle of data and content is where software productivity begins and ends.</p>
<p>Sun will need to do this right, which has its risks given Sun&#8217;s record with large software acquisitions. And Sun won&#8217;t get a lot of help ecology-wise, from any large vendors. This puts Sun on a solo track, which it seems to prefer anyway. I wonder if the global SIs other than IBM will grok this?</p>
<p>Yes, it makes a lot of sense, which makes the timing so frustrating. I for one &#8212; and I was surely not alone &#8212; told very high-up folks at Sun to buy and seduce MySQL three years ago (I also told them to merge with SAP (<a href="http://seekingalpha.com/symbol/sap" title="More opinion and analysis of SAP">SAP</a>), but that&#8217;s another blog). When Sun went and renamed it&#8217;s SunONE stack to the Java what&#8217;s-it-all, I warned them it would piss off the community. It did. I also told them Oracle was kicking their shins in. It did. I said: &#8220;Oracle has Linux, and you have MySQL.&#8221; Oh, well.</p>
<p>[Now, <a href="http://www.seekingalpha.com/article/60427-bea-acquistion-could-add-1-2-cents-to-oracle-s-earnings">Oracle has BEA</a> (<a href="http://seekingalpha.com/symbol/beas" title="More opinion and analysis of BEAS">BEAS</a>), which pretty much dissolves any common market goals that Oracle and Sun once had as leaders of the anti-Microsoft coalition. The <a href="http://blogs.zdnet.com/Gardner/?p=2557">BEA acquisition by Oracle was a given</a>, hastened no doubt to the close by the gathering gloom of a U.S. economic recession.]</p>
<p>I&#8217;m glad the Sun-MySQL logic still holds, but Oracle has already done the damage with Linux, we saw how that Unix-to-Linux transition put Sun on its knees, and on the defensive. And we know that Sun has only been able to get one leg up since then, albeit refraining from falling over completely. Now, with BEA, Oracle with its Linux and other open source strengths &#8212; not to mention those business apps &#8212; will seek to choke out the last light from Sun, and focus on IBM on the top end, and Microsoft on the lower end. As Larry Ellison said, there will be room for only a handful of mega-vendors &#8212; and we cannot be assured yet that Sun will meaningfully be one of them (or perhaps instead the next Unisys (<a href="http://seekingalpha.com/symbol/uis" title="More opinion and analysis of UIS">UIS</a>)).</p>
<p>Indeed, the timing may still have some gold lining &#8230;. err, silver lining. Sun has had to pay big-time for MySQL (a lot more than if they had taken a large position in the AB two years ago). And what do they get for the cool $1 billion? Installed base, really. Sun says MySQL has millions of global deployments including Facebook, Google (<a href="http://seekingalpha.com/symbol/goog" title="More opinion and analysis of GOOG">GOOG</a>), Nokia (<a href="http://seekingalpha.com/symbol/nok" title="More opinion and analysis of NOK">NOK</a>), Baidu (<a href="http://seekingalpha.com/symbol/bidu" title="More opinion and analysis of BIDU">BIDU</a>) and China Mobile (<a href="http://seekingalpha.com/symbol/chl" title="More opinion and analysis of CHL">CHL</a>).</p>
<p>There&#8217;s more, though. The next vendor turf battles are moving up yet another abstraction. Remember the cloud thing? Sun in sense pioneered the commercialization of utility computing, only to have Amazon (<a href="http://seekingalpha.com/symbol/amzn" title="More opinion and analysis of AMZN">AMZN</a>) come out strong (and added <a href="http://www.amazon.com/b/ref=sc_fe_c_1_3435361_1?ie=UTF8&amp;node=342335011&amp;no=3435361&amp;me=A36L942TSJ2AJA">a database service in the cloud</a> late last year). IBM has <a href="http://www-03.ibm.com/press/us/en/pressrelease/22613.wss">cloud lust</a>. Google and Microsoft, too. Sun&#8217;s acquisition of MySQL could also help it become a larger vendor to the other cloud builders, ie telecos, while seeding the Sun cloud to better rain down data services for its own users and developers.</p>
<p>And that begs the question of an Oracle-BEA cloud. Perhaps a partnership with Google on that one, eh? Then we have the ultimate mega-vendor/provider triumvirate: Apple-Google-Oracle. It&#8217;s what Microsoft would be if it broke itself up properly and got the anti-trust folks off of their backs (not to mention a reduction in internal dysfunction). And that leaves loose change in the form of Sun, IBM, Amazon, eBay (<a href="http://seekingalpha.com/symbol/ebay" title="More opinion and analysis of EBAY">EBAY</a>), and the dark horses of the telecos. Sun ought to seduce the telcos, sure, and they know it. Problem is the telecos don&#8217;t yet.</p>
<p>Surely if Sun can produce a full-service cloud built on Solaris-Intel (<a href="http://seekingalpha.com/symbol/intc" title="More opinion and analysis of INTC">INTC</a>)-Sparc that includes low-energy-use virtualized runtimes, complementary tools, and integrated database &#8212; and price it to win &#8212; well, the cloud wars are on. Sun might hang on for yet another day or two.</p>
]]></content:encoded>
			<wfw:commentRss>http://rochakchauhan.com/blog/2008/01/17/buying-mysql-could-save-sun/feed/</wfw:commentRss>
		<slash:comments>649</slash:comments>
		</item>
		<item>
		<title>Six steps to secure sensitive data in MySQL</title>
		<link>http://rochakchauhan.com/blog/2008/01/10/six-steps-to-secure-sensitive-data-in-mysql/</link>
		<comments>http://rochakchauhan.com/blog/2008/01/10/six-steps-to-secure-sensitive-data-in-mysql/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 10:41:11 +0000</pubDate>
		<dc:creator>rochakchauhan</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[secure data]]></category>

		<guid isPermaLink="false">http://rochakchauhan.com/blog/2008/01/10/six-steps-to-secure-sensitive-data-in-mysql/</guid>
		<description><![CDATA[&#160; If you&#8217;re using MySQL, there are some easy things you can do to secure your systems and significantly reduce the risk of unauthorised access to your sensitive data. The most valuable asset for technology-based organisations is usually the customer or product information in their databases. And so, a critical part of database administration in &#8230; <a class="read-excerpt" href="http://rochakchauhan.com/blog/2008/01/10/six-steps-to-secure-sensitive-data-in-mysql/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p id="story" class="clearfix">&nbsp;</p>
<p class="smdeck">If you&#8217;re using MySQL, there are some easy things you can do to secure your systems and significantly reduce the risk of unauthorised access to your sensitive data.</p>
<p>The most valuable asset for technology-based organisations is usually the customer or product information in their databases. And so, a critical part of database administration in such organisations consists of securing these databases against outside attack and hardware/software failures.</p>
<p>In most cases, hardware and software failures are handled through a data backup regimen. Most databases come with built-in tools to automate the entire process, making this aspect of the job relatively painless and error-free. What&#8217;s not so simple, however, is the second half of the puzzle: making sure that outside hackers can&#8217;t get into the system and either steal or damage the information contained therein. And unfortunately, there usually isn&#8217;t an automated way to solve this problem; rather, it requires you, the administrator, to manually put in place roadblocks and obstacles to trip up would-be hackers and to ensure that your company&#8217;s data stays secure.</p>
<p>A common reason for not securing databases is that it is &#8220;difficult&#8221; and &#8220;complicated&#8221;. While this is certainly true, if you&#8217;re using MySQL, there are some easy things you can do to significantly reduce the risk you face. This tutorial lists six such items, but you can find many more in the MySQL manual and discussion forums.</p>
<h2>Step 1: Remove wildcards in the grant tables</h2>
<p>The MySQL access control system works through a series of so-called grant tables, which make it possible to define access levels for each user at the database, table or column level. While these tables do allow administrators to set blanket permissions for a user or set of tables using wildcards, doing so is inherently dangerous because a hacker could use a single compromised account to gain access to other parts of the system. For this reason, be precise when assigning users privileges and always ensure that users have only as much access as they need to perform their tasks. In particular, be wary of assigning the SUPER privilege to individual users, as this level allows users to manipulate basic server configuration and access all databases.<strong>Tip:</strong> Use the SHOW PRIVILEGES command for each user account to audit your grant tables and see if the use of wildcard permissions is appropriate.</p>
<h2>Step 2: Require the use of secure passwords</h2>
<p>User accounts are only as secure as the passwords used to protect them. For this reason, the very first thing you should do when you install MySQL is assign a password to the MySQL root account (empty by default). Once you&#8217;ve closed this gaping hole, the next step is to require that every user account must have a password and ensure that passwords do not use easily-recognisable heuristics such as birthdays, user names or dictionary words.<strong>Tip:</strong> Use the MySQL &#8211;secure-auth option to prevent the use of older, less secure MySQL password formats.</p>
<h2>Step 3: Check the permissions of configuration files</h2>
<p>Very often, to make server connections faster and more convenient, both individual users and server administrators store their user account passwords in their per-user MySQL options file. However, this password is stored in plain-text within the file and can easily be read. Therefore, it&#8217;s important to ensure that such per-user configuration files are not viewable by other users of the system, and are stored in non-public locations. Ideally, you&#8217;d want the per-user configuration to be stored in the user&#8217;s home directory with permissions 0600.</p>
<h2>Step 4: Encrypt client-server transmissions</h2>
<p>An important issue in the MySQL (and any) client-server architecture involves the security of data being transmitted over the network. If client-server transactions take place in plaintext, it is possible for a hacker to &#8220;sniff&#8221; the data packets being transmitted and thus gain access to sensitive information. You can close this hole either by enabling SSL in your MySQL configuration, or by using a secure shell utility like OpenSSH to create a secure encrypted &#8220;tunnel&#8221; for your data to pass through. Encrypting your client-server connection in this manner makes it extremely hard for unauthorised users to read the data going back and forth.</p>
<h2>Step 5: Disable remote access</h2>
<p>If your users don&#8217;t need to access the server remotely, you can significantly reduce the risk of a network attack by forcing all MySQL connections to take place via the UNIX socket file. This is accomplished by starting the server with the &#8211;skip-networking option. Doing this blocks TCP/IP network connections to MySQL and ensures that no user can remotely connect to the system.<strong>Tip: </strong>An enhancement to this would be to add the directive bind-address=127.0.0.1 in your MySQL server configuration, to force MySQL to bind to the IP address of the local machine and thus ensure that only users on the same system can connect to MySQL.</p>
<h2>Step 6: Actively monitor the MySQL access log</h2>
<p>MySQL comes with a number of different log files, which keep track of client connections, queries and server errors. Of these, the most important is the general query log, which logs each client connection and disconnection with a timestamp, and also records each query executed by a client. If you suspect unusual activity, such as that associated with a network break-in attempt, it&#8217;s a good idea to monitor this log to gain an understanding of the source of the activity.Protecting your MySQL databases is an ongoing task, and so you shouldn&#8217;t rest easy once you&#8217;ve done the steps above. Visit the MySQL manual and the MySQL forums for more security tips, and be proactive in monitoring and updating the security of your system. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://rochakchauhan.com/blog/2008/01/10/six-steps-to-secure-sensitive-data-in-mysql/feed/</wfw:commentRss>
		<slash:comments>572</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
