sgtbash Posted November 12, 2010 Share Posted November 12, 2010 Hi all,Just going through the process of updating a few of my PS sites to 1.3.2. Did one today from 1.2.5 and all is fine (as far as I can tell)Just done another of them from 1.2.5 and the 1.3.2 install flagged 'one sql error' when upgrading the DB (i guess that is what it was doing)It wasn't clear from the upgrade screen exactly what the problem was and it let me continue.The site is fine and works fine apart from the Customers tab in BO.It just shows an orange warning bar with 'Bad SQL Query' in.Is there any way of even knowing what the query is, or what is bad about it and how I can fix it?ThanksDanP.S. I can view a single customer record from an order but just not the big list. Any help greatly appreciated. Link to comment Share on other sites More sharing options...
rocky Posted November 13, 2010 Share Posted November 13, 2010 Did you save the SQL error log before continuing with the installation? If not, there is no way I'm aware of to get the log other than restoring a backup of v1.2.5 and then doing the upgrade again. Link to comment Share on other sites More sharing options...
sgtbash Posted November 13, 2010 Author Share Posted November 13, 2010 Pants.. no...I guess I could reinstall the 1.2.5 version of the DB and then try the upgrade?Annoying thing is that there has now been a few orders since the upgrade so I'll need to somehow counter those...I'll see what happens.Dan Link to comment Share on other sites More sharing options...
sgtbash Posted November 13, 2010 Author Share Posted November 13, 2010 Fixed it!I had a both my old 1.2.5 and new 1.3.2 databases open in phpmyadmin and found that three tables were missing from the list: ps_connections ps_connections_page ps_connections_sourceThen - i remembered I had excluded these from the export list in the office due to their size (over 8MB each) and my import file size has a limit on 8MB.I then exported just those three tables STRUCTURE only and NOT the data and imported them into my 1.3.2 database and all works fine.I've lost my connection info, but I will bring that across 8MB at a time.Thanks for your help and hope this helps someone.All the bestDan Link to comment Share on other sites More sharing options...
sgtbash Posted November 13, 2010 Author Share Posted November 13, 2010 Just another side note.I've just completed exporting and importing the final 3 table data (connections x 3)Was much simpler than I though and now the DB contains all the old connections.Also found out that exporting from phpmyadmin as csv with 'gzipped' compression really works well > 8MB to 1MB = Happy Days!(Kinda thinking I should have tried gzip first!)Dan Link to comment Share on other sites More sharing options...
mytheory. Posted December 27, 2010 Share Posted December 27, 2010 Hi sgtbash,I have a question not so much regarding the DB upgrade, but more about those 3 tables (connection tables)... You said you ported those over without any data (just the structures) and you don't have any connection data... have you had any problems with these 3 tables being empty? Any problems with existing customer or order related data?I want to delete the contents of these tables... I have too many page views and carts, etc. that I want to get rid of, but I can't afford to have it mess up any of my customer or order data. Losing connection data related to orders or customers is ok, and want to start "anew"... but as stated before nothing more in terms of problems or errors.Have you noticed any issues with these "empty" tables?Thanks! Link to comment Share on other sites More sharing options...
sgtbash Posted December 27, 2010 Author Share Posted December 27, 2010 Hi Mytheory,Not really no - all it seemed to do for me was literally remove the connections from under their address details (or above, not got it open right now).Not done much testing after that as I brought the data in one table at a timeDan Link to comment Share on other sites More sharing options...
mytheory. Posted December 28, 2010 Share Posted December 28, 2010 Thanks for that input...Now I understand that you eventually brought over your old data into these new tables... I don't know if you remember anything prior to moving over those table data... but when those tables were empty did you notice if new data was being generated for new visitors/customers?Like erasing the data didn't break it from creating new data (basically starting new), right?Thanks! Link to comment Share on other sites More sharing options...
sgtbash Posted December 28, 2010 Author Share Posted December 28, 2010 Thats correct, I found that by not importing the data from those tables (structure has to be present so bear that in mind) the new orders had new data in, all that was missing was the old data.Dan Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now