<?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>gHacks technology news &#187; Linux database server</title>
	<atom:link href="http://www.ghacks.net/tag/linux-database-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install phpmyadmin for easy MySQL administration</title>
		<link>http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/</link>
		<comments>http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:17:26 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux database server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9194</guid>
		<description><![CDATA[I have been working with LAMP (Linux Apache, MySQL, PHP) servers for a long time. But not matter how much experience I have with them one of the first things I, do after the LAMP installation, is to install phpMyAdmin. This tool makes database administration so much easier than the command line. And when your [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working with LAMP (Linux Apache, MySQL, PHP) servers for a long time. But not matter how much experience I have with them one of the first things I, do after the LAMP installation, is to install phpMyAdmin. This tool makes database administration so much easier than the command line. And when your job is rolling out sites that depend upon MySQL databases, you know how quickly MySQL can fubar a quick deployment.</p>
<p>In this article you will learn how to install and configure the phpMyAdmin MySQL tool.</p>
<p><span id="more-9194"></span>The first step is to download phpMyAdmin. You can get this tool from the <a title="phpMyAdmin download page" href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank">phpMyAdmin download page</a>. Once you have this downloaded you will need to move the file into the document root of your web server (you will need to have root or sudo access to do this and the setup) Most likely this will be either <em>/var/www/html </em>or <em>/var/www</em>. Once you have this file in the proper locaton it is time to take care of business.</p>
<p>The first thing to do is to unpack the file. The unpacking command will depend upon what file format you download. Let&#8217;s use the .gz file for an example. With the file <a href="http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-3.1.1-english.tar.gz?download#%21md5%217b92c4a670bba085484e7f3a7c25e825">phpMyAdmin-3.1.1-english.tar.gz</a> in place issue the command:</p>
<p>tar xvzf phpMyAdmin-3.11-english.tar.gz</p>
<p>The resulting directory will be <strong>phpMyAdmin</strong>. I highly recommend changing the name of that directory to something easier to navigate and remember. I generally just change the directory with the command <em>mv phpMyAdmin phpmyadmin</em>.</p>
<p>Now that the directory is correct move into the directory. There is one file in particular you must have which is the <strong>config.inc.php<em> </em></strong>file. You will notice there is a file called <strong>config.sample.inc.php</strong>. Some documentation instructs to change the name of <strong>config.sample.inc.php</strong> to <strong>config.inc.php</strong> and make your changes from within that file. It is my opinion that method can become confusing with all of the extra options included. Instead create the new config file with the following contents (depending upon your setup):</p>
<p><code>&lt;?php<br />
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */<br />
/*<br />
* Servers configuration<br />
*/<br />
$i = 0;<br />
/*<br />
* First server<br />
*/<br />
$i++;<br />
$cfg['Servers'][$i]['user'] = 'root';<br />
$cfg['Servers'][$i]['password'] = 'ROOT_PASSWORD';<br />
$cfg['Servers'][$i]['verbose'] = '';<br />
$cfg['Servers'][$i]['host'] = 'localhost';<br />
$cfg['Servers'][$i]['port'] = '';<br />
$cfg['Servers'][$i]['socket'] = '';<br />
$cfg['Servers'][$i]['connect_type'] = 'tcp';<br />
$cfg['Servers'][$i]['extension'] = 'mysqli';<br />
$cfg['Servers'][$i]['auth_type'] = 'config';<br />
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;<br />
$cfg['Servers'][$i]['nopassword'] = true;<br />
?&gt;<br />
</code></p>
<p>There are a few pieces to note. First make sure you use the actual root mysql password where you see ROOT_PASSWORD. Also, if you want to prompted each time for your login information change <em>&#8216;config&#8217; </em>to <em>&#8216;cookie&#8217;</em> in the <em>&#8216;auth_type&#8217; </em>line.</p>
<p>Once you have that configuration file in place you should be able to log into your phpmyadmin system. To do this you will enter http://ADDRESS_TO_SERVER/phpmyadmin/ in your browser (where ADDRESS_TO_SERVER is the IP Address or URL that points to the server.</p>
<p>If, for some reason, this configuration file does not work for you give the web-based setup script a try. To run this point your browser to http://ADDRESS_TO_SERVER/phpmyadmin/setup<em> </em>to start the graphical setup process.</p>
<p>After you are logged in it should be pretty obvious how to create a new database. You simple enter thename you want to give the database and click the Create button.</p>
<p>You&#8217;re done! You now have a phpmyadmin install ready to serve you.</p>

	Tags: <a href="http://www.ghacks.net/tag/database/" title="database" rel="tag">database</a>, <a href="http://www.ghacks.net/tag/lamp/" title="LAMP" rel="tag">LAMP</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-database-server/" title="Linux database server" rel="tag">Linux database server</a>, <a href="http://www.ghacks.net/tag/mysql/" title="mysql" rel="tag">mysql</a>, <a href="http://www.ghacks.net/tag/phpmyadmin/" title="phpmyadmin" rel="tag">phpmyadmin</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/04/09/set-up-mysql-database-replication/" title="Set up MySQL database replication (April 9, 2009)">Set up MySQL database replication</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/10/install-drupal-on-a-lamp-server/" title="Install Drupal on a LAMP Server (February 10, 2009)">Install Drupal on a LAMP Server</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/01/12/backup-mysql-databases-in-linux-regularly/" title="Backup MySQL Databases In Linux Regularly (January 12, 2009)">Backup MySQL Databases In Linux Regularly</a> (11)</li>
	<li><a href="http://www.ghacks.net/2009/02/16/php-what-it-does-and-what-it-doesnt/" title="PHP &#8211; what it does and what it doesn&#8217;t (February 16, 2009)">PHP &#8211; what it does and what it doesn&#8217;t</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" title="How to: Install a LAMP server (July 23, 2009)">How to: Install a LAMP server</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
