osCmax v2.5 User Manual
Results 1 to 4 of 4

Unable to connect to database server - after changing configure.php files.

This is a discussion on Unable to connect to database server - after changing configure.php files. within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Hi everyone ! I have a site, that has been working great ! However :S Now I'm having quite the ...

      
  1. #1
    Lurker
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0


    Default Unable to connect to database server - after changing configure.php files.

    Hi everyone !

    I have a site, that has been working great !

    However :S Now I'm having quite the emergency seen as I completely lost my site for an hour+ so far !

    I had tried to add "www.mysite.com" instead of "http\\mysite.com"

    I looked on forums and it said to change the configure.php files. the moment I did, I recieved this error :

    "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO)

    in /home/mysite/public_html/catalog/includes/functions/database.php on line 19

    Unable to connect to database server!"

    PLEASE PLEASE HELP !

    I had copied back to my server the same files exactly as they were before I changed them, and it's no turning back situation !

    I don't know what to do and my hair is changing to white !

    thanks so much in advance!

    Red.

  2. #2
    osCMax Developer

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


    Default Re: Unable to connect to database server - after changing configure.php files.

    First,

    The error has nothing to do with changing the url. You must have deleted the database settings. A nice trick is to look in the second configure.php file for the info.

    View the catalog/admin/includes/configure.php file and copy the database information only from that file to your catalog/includes/configure.php file.

    That should get you back in business.


    One note - the admin configure.php file is NOT interchangeable with the catalog configure.php file, so do not copy the entire thing... Just the database connection info.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  3. #3
    Lurker
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0


    Default Re: Unable to connect to database server - after changing configure.php files.

    Well, I managed to fix the problem, indeed after filling the information.

    it's weird though, seen as I had the site working 100% fine for few monthes now, while the configure.php was empty of the above required information.

    Now everything works after I filled in the data base etc...

    but it was empty till now !

    only after I tried chaning it to www.mysite.com did the problems start. I didn't delete or add anything.

    doesn't matter though, it's working and I thank you for your time

  4. #4
    osCMax Developer

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


    Default Re: Unable to connect to database server - after changing configure.php files.

    osCMax/osCommerce simply cannot work ever without those settings. They were set and when your site stopped working, they were somehow un-set in the configure.php file.

    Trust me, your configure.php file absolutely, positively, 100% for sure initially had those values set. When you edited the configure php file, you somehow removed the values. There are few things in this world I can be 100% sure about, but this is one of 'em. osCMax/osCommerce will not ever, ever, ever, ever work without those settings. If it was working they were set.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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, 12: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, 09:08 PM
  3. Unable to connect to database server!
    By hondastunter in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 10-13-2004, 07:14 AM
  4. 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, 12:54 AM
  5. unable to connect on localhost (10055)
    By EPierre in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 02-09-2004, 09: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
  •