Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Installation Problem


Edd

Recommended Posts

Posted

Thanks for this resource BTW was really helpful figuring out things, but i have searched and cannot figure out this problem.

 

It was a fresh install. and the installation script connected fine to mysql and created the database with all the right tables and sample data.. but when i try to get to the admin panel it says "Unable to connect to database server" on the page and nothihng else.

 

I went through the configure.phps and checked that the name and password are correct (seeing as the install made the database i'm not surprised they were)

 

what's the problem here?

 

i'm hosted by yahoo and havethe localhost set to mysql... pretty stuck.

 

Thanks

 

Edd

Posted
Thanks for this resource BTW was really helpful figuring out things, but i have searched and cannot figure out this problem.

 

It was a fresh install. and the installation script  connected fine to mysql and created the database with all the right tables and sample data.. but when i try to get to the admin panel it says "Unable to connect to database server" on the page and nothihng else.

 

I went through the configure.phps and checked that the name and password are correct (seeing as the install made the database i'm not surprised they were)

 

what's the problem here?

 

i'm hosted by yahoo and havethe localhost set to mysql... pretty stuck.

 

Thanks

 

Edd

 

If your catalog section is working then take the database info from your

includes/configure.php and copy and paste it to your

admin/includes/configure.php file. Just the database section that looks like this

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted
If your catalog section is working then take the database info from your

includes/configure.php and copy and paste it to your

admin/includes/configure.php file.

 

Did i miss something in the installation procedure that left this file not configured correctly?

Posted
Your hosted with Yahoo - wait till you try to use .htaccess files.  Good luck!

 

Vger

 

Yeah, they wouldn't ftp .. so i just left them.. is that bad?

Posted

If someone starts to steal your bandwidth by embedding your images in their site and downloading them to their pages, or if you want to block ip addresses, then yes - having no .htaccess files will become a problem.

 

Vger

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...