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 under Internet stuff, Programming | Post popularity 5%

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

Akismet has protected Blogvaria from 122,261 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 1.392 pages so far today, an amazing 1.900 pages yesterday
and even more astonishingly 937.504 pages since 19 Feb 2012 alone without dropping a byte nor a pixel.

Close
E-mail It