Results 1 to 3 of 3

Unable to connect to database server!

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 ...

      
  1. #1
    Lurker
    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0


    Default Unable to connect to database server!

    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. #2
    Lurker
    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0


    Default

    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. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    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


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Unable to connect to database server!
    By zododo in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-22-2006, 01:33 AM
  2. Can't connect to MySQL server on '207.44.142.34' (111)???
    By currie_muncher in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 05-19-2005, 10:08 PM
  3. Changed configure.php, now "unable to connect to db ser
    By wildgoddess in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 04-25-2004, 01:54 AM
  4. unable to connect on localhost (10055)
    By EPierre in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 02-09-2004, 10:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •