I keep getting the following error when running the
index.php file:
ERROR: Please correctly define a default Database for
phpFriendlyAdmin (this is the same Database where the
administrative tables live). This database can be
defined in "/admin/regdb.php".
Here is a copy of mine regdb.php perhaps you can tell
me what is wrong with it:
<?php
//###############################################################################
//The Main Database MUST be uncommented and correctly
defined as a database to be used by the
phpFriendlyAdmin module
/*
$maindb = new Database();
$maindb->dbtype = "mysql"; //The PEAR DB 'type' of
database. Eg: mysql
$maindb->dbname = "psg_phpfa"; //Name of the database
$maindb->dbhost = "localhost"; //Host of the database
$maindb->dbusername = "psg_pfa"; //User Name of the
database
$maindb->dbpassword = "password"; //Password of the
database
*/
//###############################################################################
//###############################################################################
//At least one Registered Database must be uncommented
and defined, as it will house content for
phpFriendlyAdmin to manipulate
//Extra Databases may be defined if the content you
wish to manage spans accross more than one location
/*
$registereddb[0] = new Database();
$registereddb[0]->dbtype = "mysql";
$registereddb[0]->dbname = "psg_playerdb";
$registereddb[0]->dbhost = "localhost";
$registereddb[0]->dbusername = "psg_pdb";
$registereddb[0]->dbpassword = "password";
$registereddb[0]->alias = "PlayerInfo"; //An Alias
for this Database
*/
//###############################################################################
?>
Thanks
Francisco
Logged In: NO
Have you read the commented text?It says UNCOMMENT a
registered DB [ the pair of /* + */ 's.Delete those and it
shall work.