Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

Quick guide to phpMyAdmin

TrackBack | Filed by Thomas under Internet stuff, Programming | Post popularity 8%

This article explains how to get phpMyAdmin up and running on a Windows machine. It is however only ment to handle your databases running on localhost and should not be used for production environment.

PHPMyAdmin

Download the latest zip file from phpMyAdmin and unpack it to your htdocs directory in Apache. As of version 2.8 phpMyAdmin comes with an installer, which probably is a great feature if you’re an advanced database administrator. I on the other hand liked the old way, where all you needed to do was updating/filling in the config file.

Fortunately this option is still available. Create a file called config.inc.php and save it to phpMyAdmin’s root directory. This file will override the settings in libraries/config.default.php, so you can simply take out the parts you actually need to change and place them in the newly created file. Below is an example of how I set up my config file, you may off course add/remove stuff that you need/don’t need…

<?php
/* Start Servers Config */
$i = 0;

/* Server localhost (config:root) */
$i++;

$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['controluser'] = 'someuser';
$cfg['Servers'][$i]['controlpass'] = 'somepswd';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'rootpswd';

/* End Servers Config */

/* If you downloaded a theme and will make it default*/
$cfg['ThemeDefault']        = 'arctic_ocean';

/* Adds a link to phpinfo on the frontpage */
$cfg['ShowPhpInfo']         = TRUE;

/* Adds a link to display all rows in a table on one page */
$cfg['ShowAll']             = TRUE;
?>

That’s it! By filling in the users and passwords you should be up and running in a few minutes…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments
01

Blogvaria » Upgrading to Apache 2.2 said,

January 3, 2007 @ 12:27 pm

[...] If everything went well you should now be running all the latest versions of Apache, MySQL and PHP. You can test your new system by installing phpMyAdmin. [...]

02

Max C said,

January 25, 2007 @ 6:15 pm

I’ll update the example soon as there’s more to add to the config…

URL for comments RSS 2.0 feed Subscribe to Comments | TrackBack URI

Leave a Comment

Akismet has protected Blogvaria from 71,721 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 3.237 pages so far today, an amazing 4.008 pages yesterday
and even more astonishingly 102.887 pages since 12 September 2008 alone without dropping a byte nor a pixel.

Close
E-mail It