Author Topic: After 0.22 fresh installation - No database selected  (Read 1125 times)

0 Members and 1 Guest are viewing this topic.

Offline auga72

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
After 0.22 fresh installation - No database selected
« on: May 09, 2009, 05:55:04 PM »
Hi guys,

I am very new to the PHPdirector..!

I have successfully installed it, and I am able to submit viedo links too. BUT the "ADMIN" area in not accessible.

When I go to the "http://localhost/phpdirector/admin/" it says "No database selected"

Please help me.

Thank you in advance.

Regards
Augustine

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: After 0.22 fresh installation - No database selected
« Reply #1 on: May 09, 2009, 11:31:06 PM »
Did u mess about with config.php ?

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: After 0.22 fresh installation - No database selected
« Reply #2 on: May 11, 2009, 01:34:45 AM »
ya krissy is correct...

what you want to do is go into config.php(located in the root of the script install)

inside of you you will see this:
Code: [Select]
<?php
/*
+ ----------------------------------------------------------------------------+
|     PHPDirector Config File
| $License: GPL General Public License
| $Website: phpdirector.co.uk
| $Author: Ben Swanson
+----------------------------------------------------------------------------+
*/
$cfg["db_host"] = "localhost";
$cfg["db_name"] = "database name";
$cfg["db_user"] = "database username";
$cfg["db_pass"] = "database user password"
$cfg["admin_user"] = "admin"
$cfg["admin_pass"] = "------"
?>

all you want to do is plug in your server details.... below is a example:
EXAMPLE BELOW
Code: [Select]
<?php
/*
+ ----------------------------------------------------------------------------+
|     PHPDirector Config File
| $License: GPL General Public License
| $Website: phpdirector.co.uk
| $Author: Ben Swanson
+----------------------------------------------------------------------------+
*/
$cfg["db_host"] = "localhost";
$cfg["db_name"] = "PHPDVids";
$cfg["db_user"] = "testuser";
$cfg["db_pass"] = "blahblahblah"
$cfg["admin_user"] = "admin"
$cfg["admin_pass"] = "passpasspass"
?>

EXAMPLE ABOVE