<?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>The Binary Pub</title>
	<atom:link href="http://www.binarypub.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.binarypub.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 03:38:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Restoring broken MySQL Replication</title>
		<link>http://www.binarypub.com/20</link>
		<comments>http://www.binarypub.com/20#comments</comments>
		<pubDate>Wed, 18 Aug 2010 03:38:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binarypub.com/?p=20</guid>
		<description><![CDATA[Sooner or later your MySQL replication will probably go boom. Here&#8217;s how to fix it: &#8220;Stop Slave;&#8220; &#8220;SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;&#8220; &#8220;Start Slave;&#8220; &#8220;Show slave Status;&#8220; If this is a constant issue, you can use the slave-skip-errors in the my.cnf file, skipping either specific errors or all errors.]]></description>
			<content:encoded><![CDATA[<p>Sooner or later your MySQL replication will probably go boom. Here&#8217;s how to fix it:</p>
<ol>
<li>&#8220;<strong>Stop Slave;</strong>&#8220;</li>
<li>&#8220;<strong>SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;</strong>&#8220;</li>
<li>&#8220;<strong>Start Slave;</strong>&#8220;</li>
<li>&#8220;<strong>Show slave Status;</strong>&#8220;</li>
</ol>
<p>If this is a constant issue, you can use the slave-skip-errors in the my.cnf file, skipping either specific errors or all errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binarypub.com/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Lost MySQL Root Password</title>
		<link>http://www.binarypub.com/16</link>
		<comments>http://www.binarypub.com/16#comments</comments>
		<pubDate>Wed, 18 Aug 2010 03:35:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binarypub.com/?p=16</guid>
		<description><![CDATA[Its probably happened to everyone at one time or another, in the set up of a new box, forgetting what the heck you set that MySQL root password to. All is not lost, as long as you have root on your linux box! This is on a Red Hat box, your mysql start/stop commands may [...]]]></description>
			<content:encoded><![CDATA[<p>Its probably happened to everyone at one time or another, in the set up of a new box, forgetting what the heck you set that MySQL root password to. All is not lost, as long as you have root on your linux box! This is on a Red Hat box, your mysql start/stop commands may very by distro.</p>
<p>How to reset that root password:</p>
<p>Switch to root on box</p>
<p>Verify MySQL is running</p>
<p><strong>ps aux | grep mysqld</strong></p>
<p>If it is running kill it using the command below as it should provide a cleaner exit than killing the pid</p>
<p class="MsoNormal"><span> <strong> </strong></span><strong>/sbin/service mysqld stop</strong></p>
<p class="MsoNormal">Now restart the mysqld process skipping over the grant tables</p>
<p class="MsoNormal"><strong><span> </span></strong><strong>mysqld_safe &#8211;skip-grant-tables</strong></p>
<p class="MsoNormal">Now verify mysqld started up again, if it didn’t<span> </span>you have bigger problems</p>
<p class="MsoNormal"><strong><span> </span>ps aux | grep mysqld</strong></p>
<p class="MsoNormal">If it is running connect as root, no password needed since we skipped the grant tables</p>
<p class="MsoNormal"><strong><span> </span>mysql –user=root mysql</strong></p>
<p class="MsoNormal">Now update the root password</p>
<p class="MsoNormal"><strong><span> </span>UPDATE user SET Password = PASSWORD(‘new-password’) WHERE User = ‘root’;</strong></p>
<p class="MsoNormal">Flush the privileges and exit</p>
<p class="MsoNormal"><strong><span> </span>Flush privileges</strong></p>
<p class="MsoNormal"><strong><span> </span>Exit</strong></p>
<p class="MsoNormal">Now kill the mysqld process</p>
<p class="MsoNormal"><strong><span> </span>/sbin/services mysqld stop</strong></p>
<p class="MsoNormal">Verify it stopped</p>
<p class="MsoNormal"><strong><span> </span>ps aux | grep mysqld</strong></p>
<p class="MsoNormal">Now start it back up again</p>
<p class="MsoNormal"><strong><span> </span>/sbin/services mysqld start</strong></p>
<p class="MsoNormal">Verify your new password</p>
<p><strong><span style="font-size: 11pt; line-height: 115%; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;"><span> </span>mysql –u root -p</span></strong></p>
<p>If it is running kill it using the command below as it should provide a cleaner exit than killing the pid</p>
<p><strong>/sbin/service mysqld stop</strong></p>
<p>Now restart the mysqld process skipping over the grant tables</p>
<p><strong> mysqld_safe &#8211;skip-grant-tables</strong></p>
<p>Now verify mysqld started up again, if it didn’t  you have bigger problems</p>
<p><strong>ps aux | grep mysqld</strong></p>
<p>If it is running connect as root, no password needed since we skipped the grant tables</p>
<p><strong>mysql –user=root mysql</strong></p>
<p>Now update the root password</p>
<p><strong>UPDATE user SET Password = PASSWORD(‘new-password’) WHERE User = ‘root’;</strong></p>
<p>Flush the privileges and exit</p>
<p><strong>Flush privileges</strong></p>
<p><strong>Exit</strong></p>
<p>Now kill the mysqld process</p>
<p><strong>/sbin/services mysqld stop</strong></p>
<p>Verify it stopped</p>
<p><strong>ps aux | grep mysqld</strong></p>
<p>Now start it back up again</p>
<p><strong>/sbin/services mysqld start</strong></p>
<p>Verify your new password</p>
<p><strong> mysql –u root -p</strong></p>
<p>Now you should be in business!!</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-520092929 1073786111 9 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} --> <!--[endif]--></p>
<p class="MsoNormal">If it is running kill it using the command below as it should provide a cleaner exit than killing the pid</p>
<p class="MsoNormal"><span> </span>/sbin/service mysqld stop</p>
<p class="MsoNormal">Now restart the mysqld process skipping over the grant tables</p>
<p class="MsoNormal"><strong><span> </span></strong>mysqld_safe &#8211;skip-grant-tables</p>
<p class="MsoNormal">Now verify mysqld started up again, if it didn’t<span> </span>you have bigger problems</p>
<p class="MsoNormal"><span> </span>ps aux | grep mysqld</p>
<p class="MsoNormal">If it is running connect as root, no password needed since we skipped the grant tables</p>
<p class="MsoNormal"><span> </span>mysql –user=root mysql</p>
<p class="MsoNormal">Now update the root password</p>
<p class="MsoNormal"><span> </span>UPDATE user SET Password = PASSWORD(‘new-password’) WHERE User = ‘root’;</p>
<p class="MsoNormal">Flush the privileges and exit</p>
<p class="MsoNormal"><span> </span>Flush privileges</p>
<p class="MsoNormal"><span> </span>Exit</p>
<p class="MsoNormal">Now kill the mysqld process</p>
<p class="MsoNormal"><span> </span>/sbin/services mysqld stop</p>
<p class="MsoNormal">Verify it stopped</p>
<p class="MsoNormal"><span> </span>ps aux | grep mysqld</p>
<p class="MsoNormal">Now start it back up again</p>
<p class="MsoNormal"><span> </span>/sbin/services mysqld start</p>
<p class="MsoNormal">Verify your new password</p>
<p><span style="font-size: 11pt; line-height: 115%; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;"><span> </span>mysql –u root -p</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.binarypub.com/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux WPA</title>
		<link>http://www.binarypub.com/11</link>
		<comments>http://www.binarypub.com/11#comments</comments>
		<pubDate>Mon, 16 Aug 2010 19:09:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binarypub.com/?p=11</guid>
		<description><![CDATA[This was an issue I ran into recently, setting up wpa wireless on my slackware 13.1 box. Here&#8217;s how I got it going: First off you&#8217;ll need your wireless network name (SSID), and the passphrase. To generate the psk, you&#8217;ll need to run: wpa_passphrase YOURSSID passphrase Now you should get a nice little box returned [...]]]></description>
			<content:encoded><![CDATA[<p>This was an issue I ran into recently, setting up wpa wireless on my slackware 13.1 box. Here&#8217;s how I got it going:</p>
<p>First off you&#8217;ll need your wireless network name (SSID), and the passphrase. To generate the psk, you&#8217;ll need to run:<br />
<strong>wpa_passphrase YOURSSID passphrase</strong></p>
<p>Now you should get a nice little box returned from the above command, copy that information.</p>
<p>Now edit your wpa_supplicant file, found in<strong> /etc/wpa_supplicant.conf</strong></p>
<p>You&#8217;ll want to paste your info into the box, and overall your end result file should like something like:<br />
<strong>ctrl_interface=/var/run/wpa_supplicant</strong></p>
<p><strong>network = {<br />
ssid=&#8221;myNetwork&#8221;<br />
scan_ssid=1<br />
proto=WPA<br />
key_mgmt=WPA-PSK<br />
psk=SECRETKEY<br />
}</strong></p>
<p>Save that and run:<br />
<strong>wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf</strong><br />
That should turn on your wireless card<br />
Now run:<br />
<strong>dhcpcd wlan0</strong><br />
this will give you an ipaddress<br />
You should be good to go, try to<strong> ping google.com</strong></p>
<p>As each network set up is different, some tips on attempting to debug:<br />
In the wpa_supplicant command switch -B to -dd for verbose debugging.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binarypub.com/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAMP Set Up</title>
		<link>http://www.binarypub.com/8</link>
		<comments>http://www.binarypub.com/8#comments</comments>
		<pubDate>Sat, 14 Aug 2010 20:48:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binarypub.com/?p=8</guid>
		<description><![CDATA[A few quick notes on turning up a LAMP environment (Linux, Apache, MySQL, PHP). First off for those looking for a development box, and don&#8217;t care much for installing, check out XAMPP. Its a quick and dirty way to get up and running fast, however, not overly recommended for a production environment. For a bit [...]]]></description>
			<content:encoded><![CDATA[<p>A few quick notes on turning up a LAMP environment (Linux, Apache, MySQL, PHP).</p>
<p>First off for those looking for a development box, and don&#8217;t care much for installing, check out XAMPP. Its a quick and dirty way to get up and running fast, however, not overly recommended for a production environment.</p>
<p>For a bit more control, go hand by hand. This guide is for hand compiling, if your Linux flavor has a package manager such as YUM, that is not covered here.</p>
<p>I&#8217;m attempting to give enough information to provide a ballpark idea of what&#8217;s going on. The details are for googling, the best way to learn.</p>
<p>1. We&#8217;ll start with apache, this does need to be done before the PHP install. Go download HTTP server from apache. To go directly to your box, you can copy the download location and run a wget to grab the tarball.</p>
<p>2. Put your tarball someplace consistent, such as /usr/local/src. Unpack the tarball, tar -zxvf tarName</p>
<p>3. Now you&#8217;ll have to compile apache, first off run the configure, ./configure, be sure to use the &#8211;prefix to put apache some place better than /usr/local/src, such as /usr/local/apache2. Making sure to add in all your desired modules, now run make followed by make install.</p>
<p>4. If you run into an issue of a forgotten module,:</p>
<ol>
<li>go to the src directory</li>
<li><span style="font-family: Courier New;">/usr/local/apache2/bin/apxs -c mod_crap.c</span></li>
<li><span style="font-family: Courier New;">cp .libs/mod_crap.so /usr/local/apache2/modules</span></li>
</ol>
<p>5. Not to get lazy, typing, but to do PHP and MySQL is pretty much the same steps.</p>
<p>6. Go download the source files, run ./configure, make, make install</p>
<p>7. Setup httpd.conf</p>
<ol>
<li>
<ul>
<li> LoadModule php5_module modules/libphp5.so</li>
<li> AddHandler php5-script php</li>
<li> NameVirtualHost *:80</li>
<li> Include /usr/local/apache2/conf.d/*.conf</li>
<li> DirectoryIndex index.php index.html index.html.var</li>
<li><span style="font-size: x-small;">make sure all path to log files point to /var/log/httpd</span></li>
<li><span style="font-size: x-small;">Set up logrotate: edit /etc/logrotate.conf : edit /etc/logrotate.d/httpd (sample files below)<br />
</span></li>
</ul>
</li>
<li> mkdir /usr/local/apache2/conf.d
<ol>
<li> Add the conf.d files provided</li>
</ol>
</li>
</ol>
<p>Hope that gives everyone a little bit of a start.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binarypub.com/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Command Line Process</title>
		<link>http://www.binarypub.com/1</link>
		<comments>http://www.binarypub.com/1#comments</comments>
		<pubDate>Tue, 10 Aug 2010 03:28:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binarypub.com/?p=1</guid>
		<description><![CDATA[As a PHP developer, this question has come to me a few times, how do I go about creating a command in Linux that I can write in PHP? Very handy for PHP developers who don&#8217;t want to worry about shell scripting&#8230;.. 1. Write your PHP script, remember it can be executed from any directory, [...]]]></description>
			<content:encoded><![CDATA[<p>As a PHP developer, this question has come to me a few times, how do I go about creating a command in Linux that I can write in PHP? Very handy for PHP developers who don&#8217;t want to worry about shell scripting&#8230;..</p>
<p>1. Write your PHP script, remember it can be executed from any directory, so keep that in mind when writing.<br />
2.  Make the first line in your script #!/usr/local/bin/php -q That line  tells the computer to use PHP in quiet mode to execute the script.<br />
For example:<br />
#!/usr/local/bin/php -q<br />
&lt;?php<br />
//PHP code Here<br />
?&gt;<br />
3. Now you have two options:<br />
a. Go to /usr/local/bin and save your script there, with no .php, so if you have script.php make it script<br />
b. Go to /usr/local/bin and create a sym link from that directory to your script, so ln -s /path/to/script.php script<br />
4. Set your permissions on the script with the chmod command. Type man chmod if you are not familiar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binarypub.com/1/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

