osCmax v2.5 User Manual
Results 1 to 8 of 8

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

      
  1. #1
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    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.

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    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

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    Default Re: database and mysqldiff question

    Thanks Michael I'll give that a try and get back to you.

  5. #5
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    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

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    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.

  8. #8
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    10


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •