Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error 1046 No Database Selected


ewon

Recommended Posts

Posted

So i go to my website and i get this error:

 

1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

 

 

I have checked both config files to make sure that the correct name of the database is in there. The server is the same (localhost) in both documents. I am baffled...

 

This site was created by someone else and I am trying to fix this problem so that the website works properly and connects to its respective database. Any thoughts?

Posted

The db server may not be 'localhost' - it often is, but not always. Check with your hosting company.

 

Vger

Posted

well i've got a virtual dedicated server with a company that doesn't provide support... i use plesk and ssh to manage the server... any ideas of how i could find out if the server is not localhost?

 

i've also tried logging into phpmyadmin just to see what it says as far as the server i am logged onto and it says localhost... so... ???

Posted

Seems like localhost then :-)

I have seen this kind of error using CPanel. It turned out that the username and password were set up in CPanel for the database. However, there was one more step to go through to actually apply them to the database if that makes any sense! I discovered that using the preset username and password (same as for mypmyadmin) didn't give this error.

Posted

holy crap i feel like a dumb ass! thanks soooo much for pointing out the obvious permissions thing... all i had to do was change the user name and password and it connected... you would think the error would say something like, "hey retard, you don't have permission to connect to the database" ...hahah

 

 

thanks again.

Archived

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

×
×
  • Create New...