osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

database and mysqldiff question

This is a discussion on database and mysqldiff question within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi Everyone, I am trying to upgrade my website from max1.7 to RC3 but before doing that I am working ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 11-28-2007, 06:29 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default database and mysqldiff question

Hi Everyone,
I am trying to upgrade my website from max1.7 to RC3 but before doing that I am working on it on my local computer before working on my live site. So far I have downloaded a copy of my active database onto my computer, so that I can use mysqldiff on it in order to convert my database to the new RC3 database. But I have a couple of questions that I am hoping someone can help me out with.

1) When I try to import the live copy of my database onto my phpmyadmin on my local computer it starts to import and than it stops and I get the folowing error mesage;

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1038478 bytes) in C:\wamp\phpmyadmin\libraries\import\sql.php on line 213

I looked at my sql.php file line 213 and this is what I have;


}
// Skip last char
$i++;
// Next query part will start here
$start_pos = $i;
// Aren't we at the end?
if ($i == $len) {
$i--;
} else {
continue;

I am not a coder so I don't know what needs to be change here. The size of my downloaded database copy is 1.08 MB in the zip format and 6.67 MB when I unzip it. I did do a side by side comparison of my live database and my imported copy and I notice that on some of the tables the records size are a little off but also the last six tables are missing from my local copy. Which brings me to my first questions is there any way to fix this problem? I quess I am more concern with the missing tables than I am with the record size differance, though I sure would like to keep all my records if possible.

2) My second question has to do with the mysqldiff program. When doing the convertion which is the source Database (current datebase) and which is the target database (database layout to convert to)? This may be a dumb questions but since this is my first time doing this, I just want to be sure before I make any mistake. If I understand this correctly the source database would be the copy I made of my active site and the target would be the database I made when I install RC3 on my local computer. Is this correct or is it the other way around?

Thanks guys for any and all help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 11-29-2007, 04:18 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default Re: database and mysqldiff question

Hi guys, I'm still waiting on a reply to the above questions. In the meantime I decided to play around with this on my own and now I have a new question. After I ran mysqldiff and it does the convertion I am getting the following error message when I click on the send bottom:

Warning: require_once(config.inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\mysqldiff-1.5.0\send.php on line 17

Fatal error: require_once() [function.require]: Failed opening required 'config.inc.php' (include_path='.;C:\php5\pear') in C:\wamp\www\mysqldiff-1.5.0\send.php on line 17

and no changes are made to my target database. Could someone tell me what this means and how can I correct this problem? Thanks guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-29-2007, 06:51 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,987
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: database and mysqldiff question

You need to allocate more ram in php.ini. Set the allowed memory for php to 64 megabytes instead of 8:

Code:
memory_limit = 64M
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 11-29-2007, 07:58 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default Re: database and mysqldiff question

Thanks Michael I'll give that a try and get back to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 11-29-2007, 08:38 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default Re: database and mysqldiff question

Hi Michael, That didn't work, I am still getting the following error message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1038478 bytes) in C:\wamp\phpmyadmin\libraries\import\sql.php on line 213
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 11-29-2007, 08:51 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,987
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: database and mysqldiff question

Did you restart apache? Did you edit all the php.ini files? There may be several.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 11-30-2007, 06:18 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default Re: database and mysqldiff question

Hi Michael, ok that worked thank you. I was able to import the whole file with no missing tables. Now I need to figure out how to query the sql file that I got from mysqldiff? I've try a few times already and it didn't work, I kept getting different error messages with each effort. I'll post back with my results after I try a few more times.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-03-2007, 06:26 PM
Active Member
 
Join Date: May 2003
Posts: 131
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
judoka
Default Re: database and mysqldiff question

Hi Michael,

Sorry to keep brothering you with this but I am still having problems getting going. I was able to successfully import the sql file that mysqldiff generated to my live database copy on my local computer. I than was able to import my live database copy to this copy. But now I can not open my catalog or admin I keep getting the following error;

"Internet Explorer cannot display the webpage"

I know that my Wampserver is working because I have a second catalog with the original blank database attach to it and it opens fine. So I try to run the RC3 install again to see if this would fix the problem and RC3 will than open but all the inform in my database is gone. So I try to import my live database copy back on and again I can see my database inform like the catagories, product etc. but again I can not open my RC3 catalog and I again get the following message;

"Internet Explorer cannot display the webpage"

Could you please tell me what am I doing wrong? I believe That it may be a database address problem but when I change it on my config file I get the following error mesage;

"1146 - Table 'giftttny_xxxxxxxxx.cache' doesn't exist

DELETE FROM cache WHERE cache_expires <= '2007-12-03 07:26:51'"

and I'm not sure how to fix this problem either. Any help would be greatly appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Question about customer’s state information and database! webwolfe osCMax v1.7 General Mods Discussion 1 04-10-2006 06:37 PM
mysqldiff remote login dmiles osCMax v2 Installation issues 2 01-25-2006 11:14 AM
Upgrade from 1.5 to 1.7 database question Demented osCMax v1.7 Installation 1 02-15-2005 10:27 PM
question multiple shops on 1 database?????? red_fraggle osCMax v1.7 Discussion 0 03-17-2004 12:27 PM
what's a csv file (database question) sheikyerbouti osCommerce 2.2 Modification Help 2 10-22-2002 05:30 PM


All times are GMT -8. The time now is 12:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax