osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-19-2003, 05:13 PM
Lurker
 
Join Date: Jan 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
louish
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-20-2003, 02:47 AM
Member
 
Join Date: Dec 2002
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
doug
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-20-2003, 03:21 AM
Lurker
 
Join Date: Jan 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
louish
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-20-2003, 08:47 AM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-23-2003, 10:50 AM
Lurker
 
Join Date: Jan 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
louish
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-23-2003, 11:13 AM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-23-2003, 02:05 PM
Lurker
 
Join Date: Jan 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
louish
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-23-2003, 05:17 PM
New Member
 
Join Date: Dec 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DenverDave
Default

If you are a Guru - use the command line, for us other mortals, we use phpMyAdmin .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-08-2003, 12:44 AM
Lurker
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dc25
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 12-08-2003, 12:46 AM
Lurker
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dc25
Default

I got it. It's still the default root with no password. Where can I change it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
need assistance with inventory control rebron11 osCommerce 2.2 Modification Help 0 04-13-2005 02:07 PM
New install..Database connection problems eengledow osCMax v1.7 Installation 2 12-12-2004 07:21 PM
A test connection made to the database was NOT successful. proane osCommerce 2.2 Installation Help 1 09-27-2003 05:41 PM
A test connection made to the database was NOT successful. JeremyLocke osCommerce 2.2 Installation Help 1 12-29-2002 10:17 PM


All times are GMT -8. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax