Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2014
    Location
    los angeles CA
    Posts
    6
    Plugin Contributions
    0

    Default Seeing tables in csv version of database backup

    Doing a backup of the DB, and exporting as SQL file , viewing in text editor, I can see the different table names and that's good.
    However, when I export the complete DB using csv, I don't see the table names.
    I'm trying different ways to export and still don't find the table names in csv.

    this is not a big deal, but it's annoying that I can't figure it out.... I'd still probably upload using sql format, but I can't yet figure out how to see the individual TABLES in the csv version.

    Searching the posts here yields nothing on this particular subject... but I did give it many chances to act nicely ....

    Any ideas will be appreciated, of course

    thanks

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

    Default Re: Seeing tables in csv version of database backup

    Assuming you're talking about phpMyAdmin here.

    If you really feel the need to export as CSV, I believe you'd need to do each table manually, one-by-one, and name the files according to which table you're exporting.

    But, I don't see any practical application for exporting all tables to CSV. Might be suitable for individual tables when you're using that data in other applications. But not relevant for doing a full database backup.

    If you're doing exports for the purpose of doing a database backup, then SQL is the appropriate format.
    .
    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 2014
    Location
    los angeles CA
    Posts
    6
    Plugin Contributions
    0

    Default Re: Seeing tables in csv version of database backup

    thanks, I guess I wasn't clear.... I just wonder how the csv file accounts for the table names, since they don't seem to be included in the backup when done as csv.....I do the backups as sql just fine, I'm just curious as to how the csv file, which can also be used to backup and restore the DB, how it knows which table gets what information....

    Again, I'm NOT using the csv for much....and this is just curiosity...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Seeing tables in csv version of database backup

    My observations are the same: no tablename is output. Which makes sense, since a csv file is for the data, not for the tablename. I'd hate to have to remove the tablename from a csv file that I was working with.

    And, I think your assumption about using csv to restore data is wrong. I don't think that's its purpose at all. Certainly not as far as an entire database is concerned. Maybe for one single table, but that's all.
    .
    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
    Jul 2014
    Location
    los angeles CA
    Posts
    6
    Plugin Contributions
    0

    Default Re: Seeing tables in csv version of database backup

    ok, thanks

 

 

Similar Threads

  1. v153 Which tables do I need to backup
    By su35 in forum General Questions
    Replies: 3
    Last Post: 2 Dec 2014, 02:44 PM
  2. easypopulate version 1.2.5.7.csv help!
    By crittle1 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 7 Sep 2010, 11:17 PM
  3. Create Database, Tables and Drop Database or Tables
    By elwood cordery in forum General Questions
    Replies: 3
    Last Post: 17 Aug 2009, 04:03 PM
  4. where is the 'backup tables'?
    By ehm in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Apr 2008, 07:04 AM
  5. Backup MySQL Database vs using cPanel backup option?
    By IronMan101 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Jul 2007, 08:46 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