<?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>1-800-HOSTING Blog &#187; MySQL</title>
	<atom:link href="http://blog.800hosting.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.800hosting.com</link>
	<description>Inside 1-800-HOSTING</description>
	<lastBuildDate>Wed, 02 Nov 2011 17:00:58 +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>MySQL Error in the errmsg.sys file</title>
		<link>http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/</link>
		<comments>http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 03:03:11 +0000</pubDate>
		<dc:creator>Mark Kraus</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[database administration]]></category>
		<category><![CDATA[errmsg.sys]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=2139</guid>
		<description><![CDATA[I came across a simple fix for an odd MySQL issue. We recently had a MySQL server that needed to be restored from backups. After reinstalling all the essentials and importing the data, the database engine wouldn&#8217;t start. The log file indicated the following error. [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages, [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a simple fix for an odd MySQL issue. We recently had a MySQL server that needed to be restored from backups. After reinstalling all the essentials and importing the data, the database engine wouldn&#8217;t start. The log file indicated the following error.</p>
<p><code>[ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages,<br />
but it should contain at least 641 error messages.</code></p>
<p>After some googling, I found that some of the official RPM packages for MySQL actually contain the incorrect errmsg.sys files. The recommended fix listed on several sites was to either recompile from scratch or, vaguely, to &#8220;replace it with the correct errmsg.sys file.&#8221; I decided to try the vague reference and make it more specific here.</p>
<ul>
<li>First, determine the version of MySQL installed. In our case it was 5.1.56</li>
<li>Second, locate a zip file of the raw uncompiled tar.gz of that version. I used http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz</li>
<li>Third, download and extract the file to a location of your choosing.<br />
<code>cd /usr/local/src<br />
wget http://mysql.llarian.net/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz<br />
tar -zxf mysql-5.1.56.tar.gz</code></li>
<li>Fourth, backup the existing errsg.sys file.<br />
<code>mv /usr/share/mysql/english/errmsg.sys /usr/share/mysql/english/errmsg.sys.old</code></li>
<li>Fifth, copy the errmsg.sys file from the extrated source code to the live location.<br />
<code>cp /usr/local/src/mysql-5.1.56/sql/share/english/errmsg.sys /usr/share/mysql/english/errmsg.sys</code></li>
</ul>
<p>After that&#8217;s done, MySQL should start normally unless it encounters other errors.</p>
<p>-Mark Kraus<br />
Senior Systems Administrator</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2010/01/mysql-version-6-preview/" title="MySQL Version 6 Preview">MySQL Version 6 Preview</a></li><li><a href="http://blog.800hosting.com/2009/06/do-i-need-a-dedicated-database-server/" title="Do I need a dedicated database server?">Do I need a dedicated database server?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Script Tips and Resources</title>
		<link>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/</link>
		<comments>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 17:30:41 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[free php scripts]]></category>
		<category><![CDATA[google crawler]]></category>
		<category><![CDATA[googlebot]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1205</guid>
		<description><![CDATA[PHP is a language absolutely made for websites. PHP code can be inserted into an html page to enable dynamic creation. Many content management systems like Drupal, Joomla, and osCommerce  use PHP together with MySQL to build webpages. You can use PHP to detect crawling activity, rotate images/banners, and process forms. Here is an example [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://static.php.net/www.php.net/images/php.gif" alt="php" /> PHP is a language absolutely made for websites. <a title="php" href="http://php.net/" target="_blank">PHP</a> code can be inserted into an html page to enable dynamic creation. Many content management systems like Drupal, Joomla, and osCommerce  use PHP together with MySQL to build webpages.<span id="more-1205"></span></p>
<p>You can use PHP to detect crawling activity, rotate images/banners, and process forms. Here is an example of code that will email you whenever Google crawler Googlebot visits your page by detecting the useragent. You could expand the code to include other crawlers, add date and time stamp, and validate the IP to exclude impostors. I left that stuff out for simplicity and because you can  get that info from your webstats/logs. Just copy and paste this code in your web page to try it out. Note that the page may have to end with .php file extension to work, it depends on how your web server is setup.</p>
<blockquote><p>&lt;?<br />
if(eregi(&#8220;Googlebot&#8221;,$_SERVER['HTTP_USER_AGENT'])){</p>
<p>//put your email address below<br />
$address=youname@yourdomain.com;<br />
$subject=&#8221;Google visited &#8220;.$_SERVER[’HTTP_HOST’];<br />
$message=&#8221;Googlebot visited today.&#8221;;<br />
mail($address, $subject, $message);<br />
}<br />
?&gt;</p></blockquote>
<p>Here is an example of how to display  random images in a web page, it will pick one of the three banners each time the page loads. You could easily add more cases here or change the img src line to make this a random text function.</p>
<blockquote><p>&lt;?<br />
$randomimage = Rand (1,3) ;</p>
<p>//put your image name at bannerx<br />
switch ($randomimage)<br />
{<br />
case 1:<br />
&#8220;banner1&#8243;;<br />
break;</p>
<p>case 2:<br />
&#8220;banner2&#8243;;<br />
break;</p>
<p>case 3:<br />
&#8220;banner3&#8243;;<br />
break;<br />
}</p>
<p>echo &#8216;&lt;img src=&#8221;&#8216;$randomimage.&#8217;&#8221; border=0&gt;&#8217;;</p>
<p>?&gt;</p></blockquote>
<p>Another cool thing you can do is filter form data to by blocking bad words, banning ip addresses, and setting a timer with a cookie. There is nothing worse than having your website form spammed. You can get the visitor&#8217;s IP address with a built in php function and then check it against a list of bad IP addresses you have stored in a list called an <em>array</em>. You can modify this to include words by replacing the IP addresses with words. This is useful if there is a relatively small number of abusers. In the case of larger numbers, blocking at the server level using <a title="iptables wikipedia definition" href="http://en.wikipedia.org/wiki/Iptables" target="_blank">iptables</a> or a firewall may work better for you.</p>
<p>Here is the code for blocking IPs and you can add more IPs to the array if needed:</p>
<blockquote><p>&lt;?<br />
$banned_ip_addresses = array(&#8217;4.2.5.5&#8242;, &#8217;64.43.67.19&#8242;, &#8217;207.22.32.152&#8242;);</p>
<p>if(in_array($_SERVER['REMOTE_ADDR'], $banned_ip_addresses))<br />
{<br />
echo &#8220;You are banned.&#8221;;<br />
} else {<br />
continue with form processing&#8230;<br />
}</p></blockquote>
<p>If you are having problems with abusive surfers filling out your forms with constantly changing ip addresses, you can stop them by adding a cookie. A cookie is a small piece of code sent to the user&#8217;s pc to identify them.  Note that not all browsers will accept cookies, but most will. Once the cookie is set, you check for the existence of it in your form processing. Here is an example:</p>
<blockquote><p>//this sets time to 7200 seconds, 2 hours<br />
&lt;?<br />
setcookie(&#8220;userx&#8221;, &#8220;cookie1&#8243;, time()+7200);<br />
?&gt;</p>
<p>Then add the code below to find out if this person has been on your page before:</p>
<p>&lt;?<br />
if (isset($_COOKIE1["userx"])){<br />
echo &#8220;You have already filled out this form recently&#8221;;</p>
<p>} else {<br />
continue with form processing&#8230;<br />
}<br />
?&gt;</p></blockquote>
<p>There is a plethora of PHP support websites on the Internet. My longtime favorite is  <a title="php freaks forum" href="http://www.phpfreaks.com/forums/" target="_blank">PHP Freaks Forum</a> where you can post  technical questions and read responses. Another good one is the <a title="digital point php forum" href="http://forums.digitalpoint.com/forumdisplay.php?f=37" target="_blank">Digital Point PHP Forum</a>. If you are looking for scripts then visit <a title="hotscripts" href="http://www.hotscripts.com/category/php/scripts-programs/" target="_blank">Hotscripts</a>, where you will find many, some free and some paid. Also check out <a title="free scripts directory" href="http://gscripts.net/" target="_blank">Free Scripts Directory</a>,  <a title="script repository" href="http://www.sitescripts.com/PHP/" target="_blank">Script Repository</a>, and <a title="php resource index" href="http://php.resourceindex.com/Complete_Scripts/" target="_blank">PHP Resource Index</a>. They have scripts for: counters, auctions, voting, calculators, searching, support ticketing, etc.</p>
<p>PHP works fine on both Linux and Windows systems. If you have a Linux box then chances are good that it is already installed; if not, visit <a title="php" href="http://php.net/" target="_blank">php.net</a> to download it. PHP is not standard on Windows but it can be installed. If you need technical support we can help you with installing or upgrading.</p>
<p>PHP is very powerful. In an upcoming post I will explain how to speed it up using accelerators, pull data from a database, write it to a webpage, and add functionality using extensions.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li><li><a href="http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/" title="MySQL Error in the errmsg.sys file">MySQL Error in the errmsg.sys file</a></li><li><a href="http://blog.800hosting.com/2010/01/mysql-version-6-preview/" title="MySQL Version 6 Preview">MySQL Version 6 Preview</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Version 6 Preview</title>
		<link>http://blog.800hosting.com/2010/01/mysql-version-6-preview/</link>
		<comments>http://blog.800hosting.com/2010/01/mysql-version-6-preview/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 18:25:31 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Industry]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql version 6]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sybase]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1062</guid>
		<description><![CDATA[There is a new version of MySQL currently in development that will be version 6. MySQL is an open source software package that allows data to be stored and queried in tables. MySQL is used my millions, and many websites use it to store data. I think the reason it is very popular is because [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://mysql.com/common/logos/sakila.png" alt="mysql" /> There is a new version of MySQL currently in development that will be version 6. MySQL is an open source software package that allows data to be stored and queried in tables. MySQL is used my millions, and many websites use it to store data. I think the reason it is very popular is because most versions are free and works very well. In my experience the performance is comparable to commercial SQL software from Sybase, Oracle, and Microsoft.<span id="more-1062"></span></p>
<p>There are many new features in version 6. Database backups have a new function to minimize table locking while running a backup or restore. This is a big improvement over the old way of dumping a database using mysqldump which caused transactions to stop while backup was running. There is a storage engine called Falcon that was designed for multi-core processors and huge memory banks. Falcon will dynamically compress data, cache data indexes, and is optimized for multi threaded cpus. Beware that Falcon is considered alpha software and will probably have bugs at first. Also there will be a new SQL statement that allows tables to be locked in a way that allows multimodes: share mode and exclusive mode. You can learn all the technical details by reading <a title="mysql 6" href="http://docs.sun.com/app/docs/doc/mysql-refman-6.0" target="_blank">MySQL 6  online</a>.<ins datetime="2009-12-28T05:32:34+00:00"></ins><ins datetime="2009-12-28T05:32:34+00:00"></ins></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/" title="MySQL Error in the errmsg.sys file">MySQL Error in the errmsg.sys file</a></li><li><a href="http://blog.800hosting.com/2011/07/1852/" title="The Rise of the Vocaloid">The Rise of the Vocaloid</a></li><li><a href="http://blog.800hosting.com/2011/07/1765/" title="Vacations are the Journey, not the Destination">Vacations are the Journey, not the Destination</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2009/06/do-i-need-a-dedicated-database-server/" title="Do I need a dedicated database server?">Do I need a dedicated database server?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2010/01/mysql-version-6-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do I need a dedicated database server?</title>
		<link>http://blog.800hosting.com/2009/06/do-i-need-a-dedicated-database-server/</link>
		<comments>http://blog.800hosting.com/2009/06/do-i-need-a-dedicated-database-server/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 18:47:32 +0000</pubDate>
		<dc:creator>Jay Ellison</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Industry]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[database replication]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[high-availability]]></category>
		<category><![CDATA[Load Balancing]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=710</guid>
		<description><![CDATA[Well not always, but typically, yes. If you just want to sort your wedding or vacation pictures for family viewing, then probably not. Otherwise, three very good reasons why you should consider it are Security, Performance, Scalability. Security: The database should be accessible only by the front-end application server and not accessible by or open [...]]]></description>
			<content:encoded><![CDATA[<p>Well not always, but typically, yes.  If you just want to sort your wedding or vacation pictures for family viewing, then probably not.  Otherwise, three very good reasons why you should consider it are Security, Performance, Scalability.<span id="more-710"></span></p>
<p>Security:<br />
The database should be accessible only by the front-end application server and not accessible by or open to the Internet.  To accomplish this, private IPs are used to connect the public http server with the private database server.  We use our Private Backend Network (PBN) or add a cross-connect cable between the servers creating private LAN communications.  The database server has no public IP nor Internet access.  Only the http server has a public IP address.</p>
<p>Performance:<br />
Database applications are generally resource intensive.  When you run web/application/database/e-commerce/dns/email services (or any combination) on the same server, you are taking resources away from the database application.  Database applications will typically use all the RAM you can throw at them, and you don’t want your visitors waiting for database queries to load.  You want it fast, because they want it now!</p>
<p>Scalability:<br />
You hope the millions of dollars you’ve budgeted to promote your site will allow your business to grow rapidly, so you can someday retire a wealthy tycoon &#8211; spending your days on the beach sipping your favorite beverage while basking in the sun – right?  Create an environment now for that rapid growth that easily allows for scalability.  <a href="http://www.microsoft.com/Sqlserver/2005/en/us/compare-features.aspx" target="_blank">MS SQL</a> and <a href="http://mysql.com/" target="_blank">MySQL</a> database applications integrate tools for data replication services – the ability to duplicate the data to multiple servers.  A replicated database environment can offer two (2) distinct benefits; 1. performance (utilizing load balancing of multiple db servers) and 2. high-availability (preservation of data in the event of a single server failure).</p>
<p>Need help customizing an environment to meet your needs for security, high-availability, performance and scalability?  Just ask &#8211; it&#8217;s what we do best.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/" title="MySQL Error in the errmsg.sys file">MySQL Error in the errmsg.sys file</a></li><li><a href="http://blog.800hosting.com/2011/06/cloud-computing-storage-options/" title="Cloud Computing Storage Options">Cloud Computing Storage Options</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2010/01/mysql-version-6-preview/" title="MySQL Version 6 Preview">MySQL Version 6 Preview</a></li><li><a href="http://blog.800hosting.com/2009/05/what-is-load-balancing-and-why-do-i-need-it/" title="What is load balancing and why do I need it?">What is load balancing and why do I need it?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2009/06/do-i-need-a-dedicated-database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

