<?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>Avivo Tech Blog &#187; linux</title>
	<atom:link href="http://tech.avivo.si/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.avivo.si</link>
	<description>Solving problems</description>
	<lastBuildDate>Tue, 24 Jan 2012 14:46:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Change/Set permissions on external EXT3 USB drive</title>
		<link>http://tech.avivo.si/2009/10/changeset-permissions-on-external-ext3-usb-drive/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=changeset-permissions-on-external-ext3-usb-drive</link>
		<comments>http://tech.avivo.si/2009/10/changeset-permissions-on-external-ext3-usb-drive/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 07:08:55 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb hard drive]]></category>

		<guid isPermaLink="false">http://blog.sweetucan.com/?p=169</guid>
		<description><![CDATA[1 &#8211; Go to Terminal, copy &#38; paste this command: gksudo nautilus that will open Terminal as root 2 &#8211; Navigate to your new drive, Right Click, select the Permissions tab 3 &#8211; Change the Owner drop-down menu to your name, then change Folder Access to Create &#38; Delete Files, then File Access to Read [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: red;"><span style="text-decoration: underline;"><strong></strong></span></span><strong>1</strong> &#8211; Go to <strong>Terminal</strong>, copy &amp; paste this command: <strong>gksudo nautilus</strong> that will open Terminal as root</p>
<p><strong>2</strong> &#8211; Navigate to your new drive, <strong>Right Click</strong>, select the <strong>Permissions</strong> tab</p>
<p><strong>3</strong> &#8211; Change the <strong>Owner</strong> drop-down menu to your name, then change <strong>Folder Access</strong> to <strong>Create &amp; Delete Files</strong>, then <strong>File Access</strong> to <strong>Read &amp; Write</strong>, then <strong>Group</strong> to your name, <strong>Folder Access</strong> to <strong>Create &amp; Delete Files</strong>, <strong>File Access</strong> to <strong>Read &amp; Write</strong> then click <strong>Apply Permissions To Enclosed Files</strong>.</p>
<p>You will now have full access to your drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2009/10/changeset-permissions-on-external-ext3-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySql dump, tar, restore&#8230;</title>
		<link>http://tech.avivo.si/2009/02/mysql-dump-tar-restore/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-dump-tar-restore</link>
		<comments>http://tech.avivo.si/2009/02/mysql-dump-tar-restore/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 09:27:32 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[export mysql]]></category>
		<category><![CDATA[import mysql]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[migrate data]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql dump]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://blog.sweetucan.com/?p=37</guid>
		<description><![CDATA[Very often you need to migrate your MySQL database from one server to another, from Windows to Linux, Linux to Linux&#8230;. So, first you need to create dump of your existing database, to export it to a file. Here is the command: mysqldump -P 3306 -u database_username -p database_name &#62; /home/somedirectory/your_database.sql -P - means port, [...]]]></description>
			<content:encoded><![CDATA[<p>Very often you need to migrate your MySQL database from one server to another, from Windows to Linux, Linux to Linux&#8230;.</p>
<p>So, first you need to create dump of your existing database, to export it to a file. Here is the command:</p>
<blockquote><p>mysqldump -P 3306 -u database_username -p database_name &gt; /home/somedirectory/your_database.sql</p></blockquote>
<p><strong>-P </strong>- means port, if you don&#8217;y mention it default port is used (usually 3306)<br />
<strong>-u</strong> &#8211; means database username<br />
<strong>-p</strong> &#8211; means password but we didn&#8217;t specified it so after this command is executed we will be asked to type a password<strong><br />
database_name</strong> &#8211; is the name of your database you want to export<br />
<strong>&gt; location</strong> &#8211; at the end you specify directory where you want to create this dump</p>
<p>You probably want to zip this and you can use TAR (install Cygwin if working on Windows):<br />
Here is the command:</p>
<blockquote><p>tar cvf database.tar /home/somedirectory/your_database.sql</p></blockquote>
<p>Transfer this file on other server using FTP&#8230; And unzip it if you want using command:</p>
<blockquote><p>tar -xvf database.tar</p></blockquote>
<p>Then import the database:</p>
<blockquote><p>mysql -P 3306 -u  database_username -p new_existing_database_name &lt; /home/somedirectory/public_ftp/your_database.sql</p></blockquote>
<p><strong>-P </strong>- means port, if you don&#8217;y mention it default port is used (usually 3306)<br />
<strong>-u</strong> &#8211; means database username<br />
<strong>-p</strong> &#8211; means password but we didn&#8217;t specified it so after this command is executed we will be asked to type a password<strong><br />
new_existing_database_name</strong> &#8211; is the name of your existing database on new server where you want to import data<br />
<strong>&lt; location</strong> &#8211; at the end you specify from which directory you want to import database</p>
<p>And thats it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2009/02/mysql-dump-tar-restore/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

