PDA

View Full Version : Messed up connection


Golden Apple
5-30-05, 02:40 PM
In an attempt to secure my administration tool, I seemed to have wiped my connection to the DB out by re-uploading all files. I now get this message:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/u/username/htdocs/osCommerce/catalog/626****/includes/functions/database.php on line 19
Unable to connect to database server!

What is my next move? Find the above file and enter my db info, or just reinstall and start over? Any advice welcomed.

Az Law
5-30-05, 05:52 PM
Golden Apple , if you modified the path to your sql server in the database.php file, then undo the changes and re-upload the file. If you do not know what you modified, then take a fresh copy of the file from a new OsCommerce download and upload it instead. If that still fails and you have not modified the store greatly then a new installation from scratch should be quick. Usually anything you may have to do to secure a package lik Os Commerce is only to changemode some files. This is accomplished through most ftp software or through sitemanger.

Also, when posting in the forums, be sure not to list the true path to your directory as this is a security issue. Instead use fictitios letters such as:
/www/x/xxx/htdocs/etc.....

stevel
5-30-05, 07:33 PM
Does it really say "626****" in there?

Golden Apple
5-30-05, 07:52 PM
Thanks for the response - I actually did dummy the message - that's why there are ****s in the filename. Since this is a new install, with nothing in it other than me messing around, I will re-install.