osCommerce Community Support Forums: mysql 5 upgrade killed my site - osCommerce Community Support Forums

Jump to content

Corporate Sponsors (view more of our hosting, developer, and service partners)


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

mysql 5 upgrade killed my site I need help getting my site running again Rate Topic: -----

#1 User is offline   JonathanH Icon

  • Find Posts
  • Group: Community Member
  • Posts: 33
  • Joined: 02-August 05
  • Real Name:Jonathan Hyland

Posted 23 August 2007 - 08:04 PM

I use powweb.com as a host and osc 2.2ms2. Domain is superior-scientific.com. powweb upgraded to mysql5 and my site is no longer working.

I'm looking to pay someone to fix this. Any suggestions of what this might cost or where I can find someone to help.

Thanks.
Just learning OSC, but loving it so far.
0

#2 User is offline   bruyndoncx Icon

  • Find Posts
  • Group: Community Member
  • Posts: 2,229
  • Joined: 20-April 04
  • Real Name:Carine Bruyndoncx
  • Gender:Female
  • Location:Belgium/ Antwerp/ Turnhout/ Arendonk

Posted 23 August 2007 - 09:41 PM

apply the last osCommerce version RC1 that has the necessary fixes for compatibility with mysql5
Hava a nice day !
Carine Bruyndoncx

KEUKENLUST, Everything but the kitchensink !
0

#3 User is offline   JonathanH Icon

  • Find Posts
  • Group: Community Member
  • Posts: 33
  • Joined: 02-August 05
  • Real Name:Jonathan Hyland

Posted 24 August 2007 - 09:55 AM

How difficult is it to apply the latest update RC1 to my site? Several modifications have been done to the current site that I don't wish to lose. Are there people that would do the upgrade for me? Where would I find them?

Thanks.
Just learning OSC, but loving it so far.
0

#4 User is offline   pubdomains.com Icon

  • Find Posts
  • Group: Community Member
  • Posts: 790
  • Joined: 15-August 07
  • Real Name:Gary
  • Location:New Delhi

Posted 24 August 2007 - 10:31 AM

Just checked your site - and caught the error
1054 - Unknown column 'p.products_id' in 'on clause'

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '134'


Good part is You can fix this yourself :)

Search for "left join"
left join manufacturers m on p.manufacturers_id = m.manufacturers_id

Modify it to make sure that first value after ON is equal to table reference in left join ie. instead of p.manufacturers_id switch values as
left join manufacturers m on m.manufacturers_id = p.manufacturers_id

so it reads like LEFT JOIN Table <Name> on <NAME>. ....

Similarly another left join in query above is
left join specials s on p.products_id = s.products_id

So the culprit here is specials s on p.products_id
Convert it as

specials s on s.products_id = p.products_id [interchange s and p or whichever is used... in your specific query]

and your site would be back to normal...
hope that helps,

This post has been edited by pubdomains.com: 24 August 2007 - 10:33 AM

Best Regards,
Gaurav India
Status: Not Online | Enjoy Weekend Fellows!!!
0

#5 User is offline   Monika in Germany Icon

  • Find Posts
  • Group: Community Member
  • Posts: 4,592
  • Joined: 06-February 05
  • Real Name:Monika
  • Gender:Female
  • Location:Frankfurt, Germany

Posted 24 August 2007 - 10:54 AM

products_to_categories p2c left join specials s on p.products_id = s.products_id


the p.=s. join will not work placed after the p2c table, it needs to be shifted right behing the p table

I could show you with original code, even better, follow the upgrade instructions that were published in the old version:
http://www.monikamat...erce/mysql5.txt
:-)
Monika

addicted to writing code ... can't get enough of databases either, LOL!

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

Interactive Media Award July 2007 ~ category E-Commerce
my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
0

#6 User is offline   pubdomains.com Icon

  • Find Posts
  • Group: Community Member
  • Posts: 790
  • Joined: 15-August 07
  • Real Name:Gary
  • Location:New Delhi

Posted 24 August 2007 - 11:15 AM

Thanks for correction :) !!!

Cheers,
Best Regards,
Gaurav India
Status: Not Online | Enjoy Weekend Fellows!!!
0

#7 User is offline   Monika in Germany Icon

  • Find Posts
  • Group: Community Member
  • Posts: 4,592
  • Joined: 06-February 05
  • Real Name:Monika
  • Gender:Female
  • Location:Frankfurt, Germany

Posted 24 August 2007 - 12:02 PM

np! as I learned coding with ms sql server & oracle, I never learned to make the "lax" joins that mysql4 allowed, so they jump into my face immediately ;-)
:-)
Monika

addicted to writing code ... can't get enough of databases either, LOL!

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

Interactive Media Award July 2007 ~ category E-Commerce
my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
0

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