This is a discussion on Unable to connect to database server! within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; Just went through the install process ok, I can get to the osCommerce admin page ok and all other options ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Just went through the install process ok, I can get to the osCommerce admin page ok and all other options except when I go to online catalog I get this error - Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2) in _______ .com/catalog/includes/functions/database.php on line 19 Unable to connect to database server! I went to line 19 of database.php and it says - $$link = mysql_pconnect($server, $username, $password); } else { It appears it is trying to call up the server address, username, and password. I was wondering if this is a simple fix or where in the file manager this information is kept so I can check to make sure it is correct. Any help would be greatly appreciated. Thanks. |
|
#2
| |||
| |||
| I did find on the Admin Control Panel under the tools section an option (server info) it appears that the information for the server is not correct. Does anyone know how to edit in that field? Thanks in advance. |
|
#3
| ||||
| ||||
| Just edit the catalog/includes/configure.php database info to match the catalog/admin/includes/configure.php database info. That will fix it.
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to connect to database server! | zododo | osCMax v1.7 Discussion | 0 | 06-22-2006 12:33 AM |
| Can't connect to MySQL server on '207.44.142.34' (111)??? | currie_muncher | osCommerce 2.2 Installation Help | 2 | 05-19-2005 09:08 PM |
| Changed configure.php, now "unable to connect to db ser | wildgoddess | osCommerce 2.2 Installation Help | 3 | 04-25-2004 12:54 AM |
| unable to connect on localhost (10055) | EPierre | osCMax v1.7 Discussion | 3 | 02-09-2004 10:22 PM |