Forums / General Questions / Seeing tables in csv version of database backup

Seeing tables in csv version of database backup

Views: 627

Results 1 to 5 of 5
6 Jul 2014, 5:18 PM
#1
jonkip avatar

jonkip

New Zenner

Join Date:
Jul 2014
Location:
los angeles CA
Posts:
6
Plugin Contributions:
0

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

6 Jul 2014, 9:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

7 Jul 2014, 12:58 AM
#3
jonkip avatar

jonkip

New Zenner

Join Date:
Jul 2014
Location:
los angeles CA
Posts:
6
Plugin Contributions:
0

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

7 Jul 2014, 5:25 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

7 Jul 2014, 2:35 PM
#5
jonkip avatar

jonkip

New Zenner

Join Date:
Jul 2014
Location:
los angeles CA
Posts:
6
Plugin Contributions:
0

Re: Seeing tables in csv version of database backup

ok, thanks