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

sky

18-02-2004 19:06:59

$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 ????

silfreed

19-02-2004 09:01:09

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

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 [iba51101361]/usr/local/etc/netmrg.xml[/iba51101361].
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