Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

is it me, or is it my DB server?


cordeliaflyte

Recommended Posts

Twice now, i've suddenly been unable to connect to any of my OSc stuff and have gotten a message like this:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.oleda/path_to_my_store_directory/includes/functions/database.php on line 19

Unable to connect to database server!

 

Seemingly at random, unrelated to stuff i'm working on. The first time, after a few minutes, it resolved itself and i was able to connect again. This time, it's been "stuck" like this for some time. I have an email in to the support people at the place that hosts my database and site, but in the meantime, i wanted to run it by you all and make sure it's not just something dumb i did fiddling with OSc. (Which seems, besides this, to be working very well).

 

thanks

cordelia

Link to comment
Share on other sites

Twice now, i've suddenly been unable to connect to any of my OSc stuff and have gotten a message like this:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.oleda/path_to_my_store_directory/includes/functions/database.php on line 19

Unable to connect to database server!

 

Seemingly at random, unrelated to stuff i'm working on. The first time, after a few minutes, it resolved itself and i was able to connect again. This time, it's been "stuck" like this for some time. I have an email in to the support people at the place that hosts my database and site, but in the meantime, i wanted to run it by you all and make sure it's not just something dumb i did fiddling with OSc. (Which seems, besides this, to be working very well).

 

thanks

cordelia

 

If you are 100% sure that your password is set correctly in your configure.php file and it probably is or your site would not work at all then it is probably something on your hosting companies end. Most times when you have an intermitten problem it is a hosting issue.

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

Link to comment
Share on other sites

I am setting up my new store, and have the site set and the database information entered. The site seems to work fine until it tries to load the checkout_shipping.php file, then I see this error:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/shad97/public_html/includes/functions/database.php on line 99

 

at the top then the page loads, but if I choose a shipping method and continue I get this error:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/shad97/public_html/includes/functions/database.php on line 99

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shad97/public_html/includes/functions/database.php:99) in /home/shad97/public_html/includes/functions/general.php on line 29

 

Please help me with this, I really need to get my new site up and working.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...