Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: phpMyAdmin Backup Settings

    When I did that SQL edit I was stabbing blindly. It worked, but I didn't want to tell people "the" way when I didn't know the proper way myself. I would appreciate knowledgeable input. (I looked at the structure of statements and removed what looked like a complete sequence including the CREATE. The SET and USE edits were straightforward.)

    Also, I have since done a backup that did update cleanly, and I'm not sure what if any differences there were in settings between the cases.

    I hoped someone expert in MySQL would put more info in the wiki article, but so far nobody has.

    PS - I did download the db as a gzip. My edits were to the file after I unzipped it.
    Last edited by gjh42; 2 Jun 2006 at 07:27 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Idea or Suggestion Re: phpMyAdmin Backup Settings

    The ideal settings to do a backup via phpMyAdmin are shown below.

    NOTE: BEFORE clicking on "Export", you should select your database from the dropdown, so that its tables are displayed. THEN click on the "Export" tab.

    - CHECKED: Structure
    - CHECKED: Add DROP TABLE
    - CHECKED: Add AUTO_INCREMENT value
    - CHECKED: Enclose table and fieldnames with backquotes
    - CHECKED: Data
    - CHECKED: Complete Inserts
    - CHECKED: Extended Inserts
    - CHECKED: Use hexadecimal for binary fields
    - Export Type: INSERT
    - CHECKED: Save as File
    - Filename Template: __DB__
    - Compression: "gzipped" (or whatever you prefer... gzip makes smaller files)



    TO RESTORE THE DATABASE:
    - open phpMyAdmin
    - select the database you wish to restore INTO, from the dropdown menu
    - click on the SQL tab
    - click on the Browse button, and select the file you downloaded when making the backup
    - click Go
    .

    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.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: phpMyAdmin Backup Settings

    Thank you so much, DrByte, for putting all this info in one concise package!

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

    Default Re: phpMyAdmin Backup Settings

    As acomment if you have problems with:

    MySQL said:

    1007: Can't create database 'databaseName'. Database exists

    This may because some hosts does not allow DROP for sequrity reasons. I have to comment out:

    DROP DATABASE `dbbame`;
    CREATE DATABASE `dbname`;

    and only leave

    USE dbname;

    in the header. I also normally drop the tables manually before import. This is the only way I got it to work on some hosts, there may be other and better ways...

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: phpMyAdmin Backup Settings

    Thanks for all the experiences... I as well as many rely upon menu driven interfaces to manipulate their DB's. So when presented with a more terse interface become lost.

    This is not an easy subject to address as there are many different types of interfaces, even when named simiarily one can be presented with a different set of choices or choices missing from what they have been accustomed to or have seen elsewhere.

    While this forum is not for the specific purpose of making individuals MySQL experts, it is a necessary function for those that are maintaining, upgrading or moving their ZenCarts.

    Thanks to Dr. Byte for the normally suggested phpMyadmin settings for accomplishing this. I am sure that it will assist many and hope that through searching tht this thread will be included.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. MySql backup with phpMyAdmin
    By DML73 in forum General Questions
    Replies: 4
    Last Post: 16 Jan 2016, 04:42 PM
  2. v150 Is backup via PHPmyAdmin all the backup I need?
    By WebKat in forum General Questions
    Replies: 2
    Last Post: 30 Jan 2012, 03:21 AM
  3. Backup MYSQL Plugin vs phpMyAdmin
    By Crunch in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Dec 2010, 12:26 AM
  4. phpMyAdmin Backup Question
    By Peace Freak in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 16 Feb 2008, 01:09 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