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

define our database connection??? Newbie, assistance please

This is a discussion on define our database connection??? Newbie, assistance please within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I am very new to PHP and MYSQL, and dont even know what im doing, at all. If someone could ...

      
  1. #1
    Lurker
    Join Date
    Jan 2003
    Posts
    4
    Rep Power
    0


    Default define our database connection??? Newbie, assistance please

    I am very new to PHP and MYSQL, and dont even know what im doing, at all. If someone could please explain to me what exactly I need to modify when it says:
    // define our database connection
    define('DB_SERVER', 'exchange');
    define('DB_SERVER_USERNAME', 'mysql');
    define('DB_SERVER_PASSWORD', '*****');
    define('DB_DATABASE', 'catalog');
    define('USE_PCONNECT', 1);

    The ONLY thing I know to change is the password (which I *'d out.).

    So pretty much, the ONLY thing I modified so far in the application_top.php file was the DB_SERVER_PASSWORD... thats it. I dont know what else to modify.

    And when I go to my site, it says it cant connect to the database . (not surprized! )

    I am running on a Cobalt RAQ3 with PHP3 and MySQL (Cobalt MySQL Release 3.23.37-1)

    the url to my store is http://www.teamlouish.com/os/catalog/

    I am an extreme newbie to MySQL, so I need to be spoken too like an idiot. Thanks

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default Did you follow the standard osCommerce install?

    Did you follow the standard osCommerce install?

    I know it can be a little hard to find but from memory it is in a directory called install in the catalog directory.

    Failing that download and follow the superb installation document available from this site under downloads

  3. #3
    Lurker
    Join Date
    Jan 2003
    Posts
    4
    Rep Power
    0


    Default doesnt have it

    I dont have an install folder. Just an install file that has a short description of extracting the contents of the tar file and extracting the sql tables.

    i kept reading on other posts from other peple about an install folder... I dont have that anywhere. i downloaded the latest copy from http://www.oscommerce.com/downloads

    I downloaded both the individule files and the package download. Neither have install folders nor any install.php file anywhere. They just have a simple 4k install file in the root dir (before catalog or admin) which includes quick installation steps for un tarring the files.

  4. #4
    Active Member
    Join Date
    Oct 2002
    Location
    Arkansas
    Posts
    149
    Rep Power
    0


    Default

    Hi,

    This is the link for the 2.2 version:
    http://www.oscommerce.com/downloads/snapshot

    It looks like from your url that you downloaded 2.1
    Sincerely,
    Melinda

    www.designhosting.biz

  5. #5
    Lurker
    Join Date
    Jan 2003
    Posts
    4
    Rep Power
    0


    Default OK Downloaded it.. now I can't connect to the database

    Ok.. now I downloaded the latest version and I found the install folder.. and I cant get it to connect to the database. This is on its own server, so I have full access to any mysql stuff, I just dont know how. The error in getting in the install is:

    Access denied for user: 'mysql@localhost' (Using password: YES)

    When I click BACK to fix it, these are the settings I have set:

    Database Server: (i put localhost, and I also tried the IP address of the server too, still no luck)

    Username: (I put mysql)
    Password: I put the correct password.
    Database: catalog (I created the catalog database manually with the instructions in the install text file.

    And I have the Enable Persistent Connections checked.
    And I have the radio button selected on Store Sessions in Database.


    Do I need to create a new user or something in mysql ? If so.. how do I do that?
    Thanks

  6. #6
    Active Member
    Join Date
    Oct 2002
    Location
    Arkansas
    Posts
    149
    Rep Power
    0


    Default

    Hi,

    After you setup your db in phpmyadmin you have to setup a user and add the user to the db you just created. Did you do this?
    Sincerely,
    Melinda

    www.designhosting.biz

  7. #7
    Lurker
    Join Date
    Jan 2003
    Posts
    4
    Rep Power
    0


    Default Got it working

    Well I got it working. I dont use PHPMyAdmin, I did it all through the command prompt. I had a friend send me the information on how to grant a new user to the mysql db.

    Got it all working, looks great. Thanks everyone.

  8. #8
    New Member
    Join Date
    Dec 2002
    Posts
    15
    Rep Power
    0


    Default

    If you are a Guru - use the command line, for us other mortals, we use phpMyAdmin .

  9. #9
    Lurker
    Join Date
    Dec 2003
    Posts
    3
    Rep Power
    0


    Default

    I got the "Access denied for user: 'mysql@localhost' (Using password: YES)" error again when I use phpMyAdmin. Where can I check if I have the correct MySQL username and password?

    Thank you,
    Dennis

  10. #10
    Lurker
    Join Date
    Dec 2003
    Posts
    3
    Rep Power
    0


    Default

    I got it. It's still the default root with no password. Where can I change it?

Similar Threads

  1. need assistance with inventory control
    By rebron11 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-13-2005, 01:07 PM
  2. New install..Database connection problems
    By eengledow in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 12-12-2004, 06:21 PM
  3. A test connection made to the database was NOT successful.
    By proane in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 09-27-2003, 04:41 PM
  4. A test connection made to the database was NOT successful.
    By JeremyLocke in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 12-29-2002, 09:17 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
  •