grantjm Posted April 8, 2003 Share Posted April 8, 2003 Hello everyone, I was up and running like a wild horse, up to about 3 hours ago. Whilst I was adding a product, I got this message. "Warning: Access denied for user: 'poppy_poppy@localhost' (Using password: YES) in /home/ultimate/public_html/catalog/admin/includes/functions/database.php on line 19 Warning: MySQL Connection Failed: Access denied for user: 'poppy_poppy@localhost' (Using password: YES) in /home/ultimate/public_html/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server!" I did not enter a user called 'poppy_poppy'. I looked at line 19 and am not sure how to interpret it. My info in that file looks like this: "<?php /* $Id: database.php,v 1.1.1.1 2002/11/28 20:57:35 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License */ function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } function tep_db_error($query, $errno, $error) { die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>'); } function tep_db_query($query, $link = 'db_link') { global $$link, $logger; if (STORE_DB_TRANSACTIONS == 'true') { if (!is_object($logger)) $logger = new logger; $logger->write($query, 'QUERY'); } $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); if (STORE_DB_TRANSACTIONS == 'true') { if (mysql_error()) $logger->write(mysql_error(), 'ERROR'); } return $result; } " Can some one please explain what could have gone suddenly wrong to cause that problem? Thank you :cry: BG Making the internet community better. Knowledge is power. Link to comment Share on other sites More sharing options...
bobu Posted April 8, 2003 Share Posted April 8, 2003 Check the database connection settings in /catalog/includes/config.php there may be a user poppy. :) Link to comment Share on other sites More sharing options...
grantjm Posted April 9, 2003 Author Share Posted April 9, 2003 Thank you my friend. It appears that I picked up a hack from someone. I will have to change my password. Byron :D BG Making the internet community better. Knowledge is power. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.