lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

usr/local/var/www/netmrg/lib/database.php

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
sky
Initiate


Joined: 18 Feb 2004
Posts: 1

PostPosted: Thu Feb 19, 2004 12:06 am    Post subject: usr/local/var/www/netmrg/lib/database.php Reply with quote

$conn = mysql_connect($GLOBALS["netmrg"]["localhost"], $GLOBALS["netmrg"]["netmrg"], $GLOBALS["netmrg"]["dragos"]) or
die("<b>DB_ERROR:</b>: Cannot connect to the database server.");

Hey can anyone help me with this problem:
my database name is: netmrg, is running on localhost with privileges for user netmrg using dragos as a password, but when i try to see on webfile something, the only message i`ve got is this:

Notice: Undefined index: netmrg in /usr/local/var/www/netmrg/lib/database.php on line 19

Notice: Undefined index: dragos in /usr/local/var/www/netmrg/lib/database.php on line 19

Notice: Undefined index: netmrg in /usr/local/var/www/netmrg/lib/database.php on line 21

and if i do mysql -u netmrg -p dragos .......is working.
Got any ideas ????
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Thu Feb 19, 2004 2:01 pm    Post subject: Re: usr/local/var/www/netmrg/lib/database.php Reply with quote

sky wrote:
$conn = mysql_connect($GLOBALS["netmrg"]["localhost"], $GLOBALS["netmrg"]["netmrg"], $GLOBALS["netmrg"]["dragos"]) or
die("<b>DB_ERROR:</b>: Cannot connect to the database server.");


It looks like you're modifying the array in database.php here; you shouldn't do that.

There's a netmrg.xml file that holds just about all configuration you should need to touch (unless you're developing NetMRG). This is commonly installed to /usr/local/etc/netmrg.xml.
You may want to go through the install documentation step-by-step to make sure you didn't miss something else.
Let us know if the format of this file is confusing, but I think it should be fairly obvious where your database info goes.

-Doug
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group