Notice: Undefined variable: maindb in L:\apacheroot\masterindex\phpfriendly\admin\install\index.php on line 5
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".
I am testing this on an apache server set up on my personal computer with latest php and mysql, I've tried the hostname given by mysql, my ip address and 'localhost' to no avail... what am I doing wrong at line 5?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having an almost identical problem, only it's a virtual server, and the message reads:
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".
Everything is set and defined as the instructions stated (only something isn't set *right*)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When defining your database to PFA did you define both $maindb and $registereddb[] objects?
$maindb tells PFA where it's configuration tables are to be located, while $registereddb[0] is an object array that tells PFA where to find the tables you wish to manage.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
O.k. after checking and re-checking everything but the obvious, I realized that the entire $maindb section was commented out! Remove /* and */ in regdb.php, and the file actually works (why they were commented out in the first place is beyond me!) Granted, it says on the line above it "MUST be uncommented", but I missed them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get this message:
Notice: Undefined variable: maindb in L:\apacheroot\masterindex\phpfriendly\admin\install\index.php on line 5
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".
I am testing this on an apache server set up on my personal computer with latest php and mysql, I've tried the hostname given by mysql, my ip address and 'localhost' to no avail... what am I doing wrong at line 5?
I'm having an almost identical problem, only it's a virtual server, and the message reads:
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".
Everything is set and defined as the instructions stated (only something isn't set *right*)
When defining your database to PFA did you define both $maindb and $registereddb[] objects?
$maindb tells PFA where it's configuration tables are to be located, while $registereddb[0] is an object array that tells PFA where to find the tables you wish to manage.
O.k. after checking and re-checking everything but the obvious, I realized that the entire $maindb section was commented out! Remove /* and */ in regdb.php, and the file actually works (why they were commented out in the first place is beyond me!) Granted, it says on the line above it "MUST be uncommented", but I missed them.