Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I fix error 2013 with MySQL?


dailce

Recommended Posts

How can I fix error 2013 with MySQL?

 

Everything worked fine until this month, I use the PayPal Shoppiong cart IPN and when I run test I get error 2013?

 

It doesn't happen all the time, only sometimes.

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

This is typically a host issue with MySQL, and has been reported to be reslved by re-installing mySQL altogether.

 

I assume this is the 'Lost database connection during query' error?

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I fixed it placing:

 

tep_db_close();

tep_db_connect();

 

lines in the ipn.php file.

 

above:

 

"if($ipn->uniqueTxnID() && $ipn->isReversal())"

 

I guess my DB couldn't handle all of the connections and timed out. This appears to be owrking for now.

 

 

 

I guess I wasn't

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...