[ phpopencounter-Bugs-978220 ] database name in config.php not used in mysql.php
"SourceForge.net" <[email protected]> Wed, 23 Jun 2004 06:34:42 -0700
| Newsgroups | gmane.comp.web.phpopentracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #978220, was opened at 2004-06-23 15:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=978220&group_id=1716
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jurgen van der Vlist (perceptive)
Assigned to: Nobody/Anonymous (nobody)
Summary: database name in config.php not used in mysql.php
Initial Comment:
Using a database name other than 'phpOpenTracker'
results in 'Could not connect to database' when i try to
start logging.
It looks like the line in config.php: 'db_database'
=> 'mydatabasename'
is not being used.
When I change mysql.php line 60:
if (!$this->connection ||
!@mysql_select_db($this->config['db_database'],
$this->connection)) {
return phpOpenTracker::handleError(
'Could not connect to database.',
E_USER_ERROR
);
}
into
if (!$this->connection ||
!@mysql_select_db('mydatabasename')) {
return phpOpenTracker::handleError(
'Could not connect to database.',
E_USER_ERROR
);
}
it works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=978220&group_id=1716
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com