<?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>Tuts4Tech &#187; mysql</title>
	<atom:link href="http://tuts4tech.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Resetting your mysql root password</title>
		<link>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/</link>
		<comments>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 22:33:40 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[forgot]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[premissions]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=554</guid>
		<description><![CDATA[First of all we need to stop mysql /etc/init.d/mysql stop Create a mysql table dump to reset the password UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root'; FLUSH PRIVILEGES; Now we need to start mysql in safe mode and import the mysql table dump mysqld_safe --init-file=/path/to/mysql/table/dump &#38; Finally we need to kill mysql and start it in [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>First of all we need to stop mysql
<pre class="brush: plain;">/etc/init.d/mysql stop</pre>
</li>
<p></p>
<li>Create a mysql table dump to reset the password
<pre class="brush: plain;">UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root';
FLUSH PRIVILEGES;</pre>
</li>
<p></p>
<li>Now we need to start mysql in safe mode and import the mysql table dump
<pre class="brush: plain;">mysqld_safe --init-file=/path/to/mysql/table/dump &amp;</pre>
</li>
<p></p>
<li>Finally we need to kill mysql and start it in normal mode
<pre class="brush: plain;">killall mysqld
/etc/init.d/mysql start</pre>
</li>
<p></p>
<li>Your password should now be reset to the one you specified in the mysql table dump</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/13/resetting-your-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install WordPress (From Command line)</title>
		<link>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/</link>
		<comments>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 02:23:14 +0000</pubDate>
		<dc:creator>Gamerx287</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=326</guid>
		<description><![CDATA[Okay, this tutorial will show you how to very easily install WordPress on your own server from the command line. First step is to make a MySQL database, user and permissions for that user. Secondly, you go to the directory that you want to put WordPress in and get the files: wget http://www.wordpress.org/latest.zip unzip wordpress-*.zip [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, this tutorial will show you how to very easily install WordPress on your own server from the command line.</p>
<p>First step is to make a MySQL database, user and permissions for that user.</p>
<p>Secondly, you go to the directory that you want to put WordPress in and get the files:<br />

<pre class="brush: bash;">wget http://www.wordpress.org/latest.zip
unzip wordpress-*.zip
cd wordpress
mv * ../
rm -R wordpress</pre>
<p>
The next step is to edit the wp-config-sample.php file (using your favorite editor such as nano, vi, etc.) and putting in your MySQL info for the WordPress database.<br />

<pre class="brush: plain;">nano wp-config-sample.php</pre>
<p>
Then change the following</p>
<pre class="brush: php;">define('DB_NAME', 'YOUR-DATABASE-NAME-GOES-HERE');
define('DB_USER', 'YOUR-DATABASE-USER');
define('DB_PASSWORD', 'YOUR-DATABASE-PASSWORD');</pre>
<p></p>
<p>You then have to rename the wp-config-sample.php file to wp-config.php</p>
<pre class="brush: bash;">mv wp-config-sample.php wp-config.php</pre>
<p>The final step is to go to the website you are installing WordPress on and fill out the information and it will install on the MySQL Database. It will then give you a login name and password and you can go from there.</p>
<p>I hope you can put this tutorial to use by using WordPress for your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd virtual hosting</title>
		<link>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/</link>
		<comments>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 01:42:51 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[port 80]]></category>
		<category><![CDATA[vhosts]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=258</guid>
		<description><![CDATA[Virtual hosting allows you to host many websites from one server. Setup The Folders and users adduser domain1 addgroup domain1 adduser www-data domain1 mkdir -p /home/domain1 chown domain1:domain1 -R /home/domain1 chmod 750 -R /home/domain1 adduser domain2 addgroup domain2 adduser www-data domain2 mkdir -p /home/domain2 chown domain2:domain2 -R /home/domain2 chmod 750 -R /home/domain2 Lighttpd Config Open [...]]]></description>
			<content:encoded><![CDATA[<p>Virtual hosting allows you to host many websites from one server.</p>
<ol>
<h3>Setup The Folders and users</h3>
<li>
<pre class="brush: plain;">adduser domain1
addgroup domain1
adduser www-data domain1
mkdir -p /home/domain1
chown domain1:domain1 -R /home/domain1
chmod 750 -R /home/domain1</pre>
<p>
<pre class="brush: plain;">adduser domain2
addgroup domain2
adduser www-data domain2
mkdir -p /home/domain2
chown domain2:domain2 -R /home/domain2
chmod 750 -R /home/domain2</pre>
</li>
</ol>
<ol>
<h3>Lighttpd Config</h3>
<li>Open your lighttpd.conf
<pre class="brush: plain;">nano /etc/lighttpd.conf</pre>
</li>
<li>Add the following for the virtual host configuration
<pre class="brush: plain;">$HTTP[&quot;host&quot;] == &quot;domain1.com&quot; {
server.document-root = &quot;/home/domain1&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain1/access.log&quot;
}</pre>
<p></p>
<pre class="brush: plain;">$HTTP[&quot;host&quot;] == &quot;domain2.com&quot; {
server.document-root = &quot;/home/domain2&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain2/access.log&quot;
}</pre>
</li>
<li>Save your config and restart lighttpd
<pre class="brush: plain;">/etc/init.d/lighttpd restart</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
