Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Location
    Göteborg
    Posts
    126
    Plugin Contributions
    0

    SQL export mod on Win2k can't find executable

    Using BACKUP_MYSQL_ADMIN_PLUGIN-1.2.0.10a on a Win2k box, I get

    Warning Result code: 1
    Warning 0 => 'c:/mysql/bin/mysqldump.exe" "--host' is not recognized as an internal or external command,
    Warning 1 => operable program or batch file.


    Have edited the language file (backup_mysql.php) to:

    define('LOCAL_EXE_MYSQL', 'c:/mysql/bin/mysql.exe');
    define('LOCAL_EXE_MYSQLDUMP', 'c:/mysql/bin/mysqldump.exe');

    However, running it in DOS works, using

    c:\mysql\bin\mysqldump.exe my_database -u root -p

    Have tried changing / to \ but this gives:

    0 => 'c:\mysql\bin\/mysqldump.exe" "--host' is not recognized as an internal or external command,

    Any clues? All input appreciated.

  2. #2
    Join Date
    Apr 2006
    Location
    Göteborg
    Posts
    126
    Plugin Contributions
    0

    Default Backup MYSQL Plugin can't find executable

    ... polite bump, perhaps I posted in the wrong place.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: SQL export mod on Win2k can't find executable

    It seems it doesn't like the way quotes are used around the command parameters.

    On line 134 of /admin/backup_mysql.php you should find:
    PHP Code:
            // remove " marks in parameters for friendlier IIS support
    //REQUIRES TESTING:        if (strstr($toolfilename,'.exe')) $dump_params = str_replace('"','',$dump_params); 
    You could try removing these characters: //REQUIRES TESTING:
    so that you're left with:
    PHP Code:
            // remove " marks in parameters for friendlier IIS support
           
    if (strstr($toolfilename,'.exe')) $dump_params str_replace('"','',$dump_params); 
    Then test the process again.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2006
    Location
    Göteborg
    Posts
    126
    Plugin Contributions
    0

    Default Re: SQL export mod on Win2k can't find executable

    Thanks for the quick answer.

    The file /admin/backup_mysql.php contains something else on line 134, and no reference to IIs (also checked the file from the current download area just now, v1.2.10).

    I'll have a look at the code to see if I can work it out anyway, but if you have an updated version it would be great to have a go at that.

  5. #5
    Join Date
    Mar 2004
    Location
    Ontario, Canada
    Posts
    138
    Plugin Contributions
    6

    Default Re: SQL export mod on Win2k can't find executable

    Wils, did you solve the problem?
    Chinese language pack
    Zen Cart plugins demo includes Ultimate SEO, Image Handler, Template Switch, Column Layout, Lightbox and Multi-Language EZ-Pages

  6. #6
    Join Date
    Mar 2004
    Location
    Ontario, Canada
    Posts
    138
    Plugin Contributions
    6

    Default Re: SQL export mod on Win2k can't find executable

    ok.. just found a post by dwno...

    admin/backup_mysql.php
    replace
    Code:
    $resultcodes = @exec($toolfilename . $dump_params , $output, $dump_results );
    with
    Code:
    $resultcodes = @exec('"' . $toolfilename . $dump_params . '"', $output, $dump_results );
    and
    Code:
    $resultcodes=exec($toolfilename . $load_params , $output, $load_results );
    with
    Code:
    $resultcodes=exec('"' . $toolfilename . $load_params . '"', $output, $load_results );
    Not tested on *nix yet, just my dev computer running winblows xp.
    Chinese language pack
    Zen Cart plugins demo includes Ultimate SEO, Image Handler, Template Switch, Column Layout, Lightbox and Multi-Language EZ-Pages

  7. #7
    Join Date
    Apr 2006
    Location
    Göteborg
    Posts
    126
    Plugin Contributions
    0

    Default Re: SQL export mod on Win2k can't find executable

    Great !! It woks on my Win2K box. Super thanks.

    /Wils

 

 

Similar Threads

  1. Birthday mod I can't find it
    By mrmarcus66 in forum All Other Contributions/Addons
    Replies: 22
    Last Post: 6 Sep 2009, 03:49 PM
  2. I can't find a old Mod
    By bradlawson in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Apr 2007, 09:53 PM
  3. Replies: 3
    Last Post: 28 May 2006, 09:00 AM
  4. where can I find an patch or mod that I can put in my admin panel so I can actually e
    By cyber1store in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 06:12 AM

Posting Permissions

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