TotalChoice Hosting Family Forums: Help Linking Oscommerce To Database - TotalChoice Hosting Family Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help Linking Oscommerce To Database

#1 User is offline   skylab001 

  • Group: Members
  • Posts: 4
  • Joined: 11-April 05

Posted 11 April 2005 - 08:11 PM

I have an Oscommerce based site that I've been running for a few years now and I'm in the process of moving over to TCH from our old host. I am trying to figure out how to connect the database during the install procedure? I have set-up the database in cPanel, but I have no idea what it's address would be on the new TCH server. Also I have not re-directed our Domian name yet because we can not afford to have any downtime in our shop. Not sure if that makes a difference. I need to get this new site set up and all the bugs worked out before we go live on the new server. Can anybody tell me how to access my database?

Thanks

#2 User is online   TCH-Bruce 

  • Lead Forum Moderator
  • PipPipPipPip
  • Group: Admins
  • Posts: 22,012
  • Joined: 11-August 03

Posted 12 April 2005 - 07:24 AM

Welcome to the forums, skylab001 :)

I'm sure someone will be along to help you. Normally the host address is "localhost".
Bruce Richards
Lead Forum Moderator
TotalChoice Hosting, L.L.C.
Webhosting by Total Choice Web Hosting - General Support Forum

I am the Lead Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.

#3 User is offline   TweezerMan 

  • Immediate Family
  • PipPipPipPip
  • Group: Members
  • Posts: 1,767
  • Joined: 26-September 04

Posted 12 April 2005 - 01:07 PM

Welcome to the forums, skylab001! :thumbup1:

I believe Bruce is correct - you should be able to connect to your MySQL database by configuring OSCommernce to connect with the hostname of 'localhost' (though I don't have any experience with OSCommerce).
David Phillips (TweezerMan)
The Tweezer's Edge v3

#4 User is online   TCH-Thomas 

  • Volunteer Moderator
  • PipPipPipPip
  • Group: Moderators
  • Posts: 15,793
  • Joined: 01-May 03

Posted 12 April 2005 - 01:29 PM

Welcome to the forum, skylab001 :)
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, L.L.C.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.

Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#5 User is offline   TCH-Don 

  • Volunteer Moderator
  • PipPipPipPip
  • Group: Moderators
  • Posts: 11,679
  • Joined: 30-November 02

Posted 12 April 2005 - 02:31 PM

Welcome to the forum, skylab001 :D
Don Rosenquist
Forum Moderator
TotalChoice Hosting, L.L.C.
Web Hosting by Total Choice Web Hosting - For Your Family - Web Hosting Family!

Any links or suggestions for third party software/sites should be used at your own risk.
My opinions and recommendations are not necessarily those of TCH and TCH is not responsible.

I am a Forum Moderator and a volunteer. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related questions. Should you need assistance in these areas, please contact our Help Desk.


treasure your pets

The Turtle says "A little knowledge is a dangerous thing,
so keep learning!"

#6 User is offline   skylab001 

  • Group: Members
  • Posts: 4
  • Joined: 11-April 05

Posted 19 April 2005 - 07:05 PM

TCH-Bruce, on Apr 12 2005, 07:24 AM, said:

Welcome to the forums, skylab001  :)

I'm sure someone will be along to help you. Normally the host address is "localhost".
<{POST_SNAPBACK}>


so what would the address string look like. ie. www.localhost.com/username_databasename ??

is that correct?

#7 User is online   TCH-Bruce 

  • Lead Forum Moderator
  • PipPipPipPip
  • Group: Admins
  • Posts: 22,012
  • Joined: 11-August 03

Posted 19 April 2005 - 07:09 PM

The configuration variable for the host would just be be 'localhost' without the quotes. It's not an address.
Bruce Richards
Lead Forum Moderator
TotalChoice Hosting, L.L.C.
Webhosting by Total Choice Web Hosting - General Support Forum

I am the Lead Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.

#8 User is offline   skylab001 

  • Group: Members
  • Posts: 4
  • Joined: 11-April 05

Posted 19 April 2005 - 07:54 PM

ok I tried using 'localhost' without the quotes as my Database server in the oscommerce setup, then my TCH username as the Username in the osc db setup, then I put int my sql db password and my sql db name which is mytchusername_databasename,

but I still continue to get this error:

Quote

A test connection made to the database was NOT successful.
The error message returned is:
Access denied for user: 'xxxxxxxxxxx_@localhost' (Using password: YES)
Please click on the Back button below to review your database server settings.
If you require help with your database server settings, please consult your hosting company.


I must be doing somthing wrong?? This was so easy on my old server.

#9 User is offline   TCH-Don 

  • Volunteer Moderator
  • PipPipPipPip
  • Group: Moderators
  • Posts: 11,679
  • Joined: 30-November 02

Posted 19 April 2005 - 08:18 PM

just to doublecheck
what you have so far.

You went to cpanel > MySql
and created a database
then created a user
and then added the user to that database
all in MySql.

the connection info
will look like this

localhost: localhost
Database: YourCpanelName_yourDatabaseName
user: YourCpanelName_DatabaseUserName
Password: *******
Don Rosenquist
Forum Moderator
TotalChoice Hosting, L.L.C.
Web Hosting by Total Choice Web Hosting - For Your Family - Web Hosting Family!

Any links or suggestions for third party software/sites should be used at your own risk.
My opinions and recommendations are not necessarily those of TCH and TCH is not responsible.

I am a Forum Moderator and a volunteer. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related questions. Should you need assistance in these areas, please contact our Help Desk.


treasure your pets

The Turtle says "A little knowledge is a dangerous thing,
so keep learning!"

#10 User is offline   skylab001 

  • Group: Members
  • Posts: 4
  • Joined: 11-April 05

Posted 19 April 2005 - 08:50 PM

TCH-Don, on Apr 19 2005, 08:18 PM, said:

just to doublecheck
what you have so far.

You went to cpanel > MySql
and created a database
then created a user
and then added the user to that database
all in MySql.

the connection info
will look like this

localhost: localhost
Database: YourCpanelName_YourCpanelName
user: YourCpanelName_DatabaseUserName
Password: *******
<{POST_SNAPBACK}>


I made sure that I was inputing things the same way and now I am getting this error:

Quote

A test connection made to the database was NOT successful.
The error message returned is:

Access denied for user: 'YourCpanelName_DatabaseUserName@localhost' to database 'YourCpanelName_DatabaseName'

Please click on the Back button below to review your database server settings.

If you require help with your database server settings, please consult your hosting company.


So I guess it is now trying to access the DB but with no luck, as before it was just giving me the error access denied.

#11 User is offline   Pendragon 

  • Distant Family
  • PipPipPip
  • Group: Members
  • Posts: 120
  • Joined: 19-March 05

Posted 19 April 2005 - 09:31 PM

skylab001, on Apr 19 2005, 08:50 PM, said:



You must create the user name in the database using cpanel before you can use it, you cpanel name isn't automatically added to the database when the account is created.

#12 User is offline   TCH-Don 

  • Volunteer Moderator
  • PipPipPipPip
  • Group: Moderators
  • Posts: 11,679
  • Joined: 30-November 02

Posted 19 April 2005 - 09:53 PM

You miss quoted my last part

Database: YourCpanelName_YourCpanelName
should be
Database: YourCpanelName_yourDatabaseName

But I think that is what you have.

the most common problem is
not creating a user
and then adding the user to the database
all of this in MySql.

Thats what the error looks like.


I too do not use OSCommernce,
so if this is not it,
hopefully someone that uses it will be along to help.
Don't give up.
Don Rosenquist
Forum Moderator
TotalChoice Hosting, L.L.C.
Web Hosting by Total Choice Web Hosting - For Your Family - Web Hosting Family!

Any links or suggestions for third party software/sites should be used at your own risk.
My opinions and recommendations are not necessarily those of TCH and TCH is not responsible.

I am a Forum Moderator and a volunteer. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related questions. Should you need assistance in these areas, please contact our Help Desk.


treasure your pets

The Turtle says "A little knowledge is a dangerous thing,
so keep learning!"

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users