<?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>HowToBSD &#187; Tips</title>
	<atom:link href="http://howtobsd.com/cat/tips/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>mysqldump on FreeBSD</title>
		<link>http://howtobsd.com/software/mysqldump-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/mysqldump-on-freebsd.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:32:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=400</guid>
		<description><![CDATA[Just a few notes about mysqldump. Create dump of mysql base: # mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql or # mysqldump --user=username --password=password DBNAME > filename.sql if you need to make dump of a few databases you can use parametr -B (or –databases): mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2 > filename.sql Make dump of the [...]]]></description>
				<content:encoded><![CDATA[<p>Just a few notes about mysqldump. </p>
<p>Create dump of mysql base:</p>
<p><code># mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql</code></p>
<p>or<br />
<code># mysqldump --user=username --password=password DBNAME > filename.sql</code> </p>
<p>if you need to make dump of a few databases you can use parametr -B (or –databases):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2  > filename.sql</code></p>
<p>Make dump of the all Databases on host:<br />
<code>mysqldump -uDBUSER -pPASSWORD -A  > filename.sql</code></p>
<p>If you need only dump structure of database (without data):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD --no-data DBNAME > filename.sql</code></p>
<p>If you want to make limited by records mysqldump, next command especially for you (It was really cool command when I need dump and then move test copy of project with enormous mysql database):</p>
<p><code> mysqldump -uDBUSER  -pPASSWORD --where="true limit 100" DBNAME > filename.sql  </code></p>
<p>this command will dump your database with defined amount records in each table. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/mysqldump-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change hostname on FreeBSD</title>
		<link>http://howtobsd.com/tips/how-to-change-hostname-on-freebsd.html</link>
		<comments>http://howtobsd.com/tips/how-to-change-hostname-on-freebsd.html#comments</comments>
		<pubDate>Sat, 26 Mar 2011 11:29:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[rc.conf]]></category>
		<category><![CDATA[System Configuration]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=337</guid>
		<description><![CDATA[For change hostname to &#8216;howtobsd.com&#8217; you should edit /etc/rc.conf: hostname="howtobsd.com" You also can change hostname without reboot by command: #hostname howtobsd.com but after reboot i will return on value in rc.conf check current hostname: hostname]]></description>
				<content:encoded><![CDATA[<p>For change hostname to &#8216;howtobsd.com&#8217; you should edit /etc/rc.conf:<br />
<code>hostname="howtobsd.com"</code></p>
<p>You also can change hostname without reboot by command:</p>
<p><code>#hostname howtobsd.com</code></p>
<p>but after reboot i will return on value in rc.conf</p>
<p>check current hostname:<br />
<code><br />
hostname</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/how-to-change-hostname-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql log queries FreeBSD</title>
		<link>http://howtobsd.com/tips/mysql-log-queries-freebsd.html</link>
		<comments>http://howtobsd.com/tips/mysql-log-queries-freebsd.html#comments</comments>
		<pubDate>Thu, 10 Mar 2011 09:06:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=329</guid>
		<description><![CDATA[If you want to activate logging of mysql queries, add in your my.cnf (by default it is /var/db/mysql/my.cnf) in [mysqld] section: log=/var/log/mysql.log create log file: #touch /var/log/mysql.log #chmod 666 /var/log/mysql.log and restart mysql-server: #/usr/local/etc/rc.d/mysql-server restart (it can be different on you server) That is all. PS: I don&#8217;t recommend you use it on hight loaded [...]]]></description>
				<content:encoded><![CDATA[<p>If you want to activate logging of mysql queries, add in your my.cnf (by default it is /var/db/mysql/my.cnf)<br />
in [mysqld] section:</p>
<p><code>log=/var/log/mysql.log</code></p>
<p>create log file:</p>
<p><code>#touch /var/log/mysql.log<br />
#chmod 666 /var/log/mysql.log</code></p>
<p>and restart mysql-server:</p>
<p><code>#/usr/local/etc/rc.d/mysql-server restart</code> (it can be different on you server)</p>
<p>That is all.</p>
<p>PS: I don&#8217;t recommend you use it on hight loaded servers permanently. Use it only for debugging. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/mysql-log-queries-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set timezone FreeBSD</title>
		<link>http://howtobsd.com/tips/how-to-set-timezone-freebsd.html</link>
		<comments>http://howtobsd.com/tips/how-to-set-timezone-freebsd.html#comments</comments>
		<pubDate>Thu, 03 Mar 2011 21:40:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=326</guid>
		<description><![CDATA[Change timezone in FreeBSD to GTM -0500: #cp /usr/share/zoneinfo/America/New_York /etc/localtime Check current GMT zone in FreeBSD you can by command: #date +%z]]></description>
				<content:encoded><![CDATA[<p>Change timezone in FreeBSD to GTM -0500:<br />
<code>#cp /usr/share/zoneinfo/America/New_York /etc/localtime</code> </p>
<p>Check current GMT zone in FreeBSD you can by command:</p>
<p><code>#date +%z</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/how-to-set-timezone-freebsd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to update time on FreeBSD (synchronize)</title>
		<link>http://howtobsd.com/tips/how-to-update-time-on-freebsd.html</link>
		<comments>http://howtobsd.com/tips/how-to-update-time-on-freebsd.html#comments</comments>
		<pubDate>Tue, 14 Sep 2010 11:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=181</guid>
		<description><![CDATA[One command synchronize system time on FreeBSD #ntpdate europe.pool.ntp.org]]></description>
				<content:encoded><![CDATA[<p>One command synchronize system time on FreeBSD</p>
<p><code>#ntpdate europe.pool.ntp.org</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/how-to-update-time-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change FreeBSD root password</title>
		<link>http://howtobsd.com/tips/how-to-change-freebsd-root-password.html</link>
		<comments>http://howtobsd.com/tips/how-to-change-freebsd-root-password.html#comments</comments>
		<pubDate>Sun, 12 Sep 2010 16:08:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=177</guid>
		<description><![CDATA[Change root password: &#8211; Boot system in single user mod (key &#8220;4&#8243;) &#8211; Remount / root in rw mode: #mount -u / #mount -a &#8211; Сhange the password: #passwd &#8211; Insert new root password &#8211; Reboot]]></description>
				<content:encoded><![CDATA[<p><strong>Change root password:</strong></p>
<p> &#8211; Boot system in single user mod (key &#8220;4&#8243;)</p>
<p> &#8211; Remount / root in rw mode:</p>
<p><code>#mount -u /<br />
#mount -a</code></p>
<p> &#8211; Сhange the password:</p>
<p><code>#passwd</code></p>
<p> &#8211; Insert new root password<br />
 &#8211; Reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/how-to-change-freebsd-root-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim &#8211; howto delete blank lines</title>
		<link>http://howtobsd.com/tips/vim-howto-delete-blank-lines.html</link>
		<comments>http://howtobsd.com/tips/vim-howto-delete-blank-lines.html#comments</comments>
		<pubDate>Mon, 07 Jun 2010 07:36:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=136</guid>
		<description><![CDATA[You can use :g/^\s*$/d in the vim redactor for cleaning file from blank lines]]></description>
				<content:encoded><![CDATA[<p>You can use :g/^\s*$/d in the vim redactor for cleaning file from blank lines </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/vim-howto-delete-blank-lines.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to restart apache</title>
		<link>http://howtobsd.com/tips/how-to-restart-apache.html</link>
		<comments>http://howtobsd.com/tips/how-to-restart-apache.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 21:51:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=70</guid>
		<description><![CDATA[restart apache: apachectl restart restart without aborting open connections: apachectl graceful]]></description>
				<content:encoded><![CDATA[<p>restart apache:</p>
<p><code>apachectl restart</code></p>
<p>restart without aborting open connections:</p>
<p><code>apachectl graceful</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/how-to-restart-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
