Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default Restored MAMP folder - Can I get my database back?

    Firstly, I have to admit that I am not very familiar with DB applications.

    Here's my problem (any suggestions would be very much appreciated):

    I had a virtual store running on my Mac. All was hunky-dory with 600+ items in the store and almost ready to upload to my host. I made a daily copy of my entire MAMP folder (XAMPP equivalent) which includes the Zencart installation. I stupidly installed WordPress into the htdocs folder - things went wrong and I ended up with an unrecoverable mess.

    Copying the entire back-up MAMP folder into the same location gets me sort of back to where I was as far as the layout and customized themes goes, but the DB with all my categories and items are missing. Is there any way of importing/linking the old DB into the 'new' store ? I've tried the Importing from phpMyAdmin but cannot seem to get anywhere. Attached is a snapshot of the files in the DB folder.

    Is there something simple I'm missing or have I lost everything ?
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Restored MAMP folder - Can I get my database back?

    If you open your browser to "localhost/MAMP" can you access phpMyAdmin and access your data?

    Your MAMP controls might be on "localhost:8888/MAMP" depending on how you've set it up.
    .

    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
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Restored MAMP folder - Can I get my database back?

    Thanks for your help DrByte.

    I can access phpMyAdmin. I reinstalled zencart using the same settings as the original install (db name - zencart and the same password) and now have a zencart (95) db.

    Would I be correct in assuming that the file ibdata1 (10MB) is where the original data is stored ? If so, is there any way of importing it ?

    Mmmh, is there an 'Idiot' Smilie for me to use ?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Restored MAMP folder - Can I get my database back?

    I have no idea what "ibdata1" is.
    If you originally had your data in a database named "zencart", then that's where your data would have been. If you've created a new database named "zencart" and/or run a new install using that database name, then you've likley overwritten the contents of that database and would need to restore from backup again.

    Rather than doing a "folder" backup to backup database content, you should use phpMyAdmin to do a proper database "export" so that you can move your data around between servers if necessary, etc. Related FAQ: https://www.zen-cart.com/tutorials/i...hp?article=103
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Restored MAMP folder - Can I get my database back?

    The only file that appears in the zencart db folder is 'db.opt' which is only 4k in size. Looks like I have two choices:

    1) Learn SQL
    2) Start drinking

    It's all gone isn't it ?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Restored MAMP folder - Can I get my database back?

    It would seem that if your MySQL folder, which at one point contained database table files for your offline Zen Cart data, is empty, that ... well ... that data is not on your computer anymore.

    Whether it's available in your backups is the remaining question.


    You might find more specific support for restoring your MySQL data using raw operating system files by looking on the MySQL website and/or the MAMP support community.
    .

    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.

  7. #7
    Join Date
    Oct 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Restored MAMP folder - Can I get my database back?

    The backup folder is also empty - I have no idea why the contents weren't copied from the original. Permissions perhaps ?

    I've accepted my mistake and have started from scratch. Unfortunately I've had to learn the hard way.

    Thanks for the input and help.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 1 Aug 2010, 04:08 PM
  2. Site Hacked, can I get it back to get data
    By jvalent in forum General Questions
    Replies: 1
    Last Post: 24 Jun 2010, 06:02 PM
  3. Restored Database has Errors
    By Ruts67 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Feb 2010, 10:14 PM
  4. I want my back up restored to another database
    By judah in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Jul 2008, 08:35 AM
  5. Database can get it set back
    By maumau69 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 27 Jan 2007, 05:18 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR