|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MySQL Table Export / Dump
I want to dump the contents of my database table to an Excel csv file format.
Any ideas? |
|
#2
|
|||
|
|||
|
RE: MySQL Table Export / Dump
I don't think it should take much time to code it in php or sth else..
At least, as I understand it, all you have to do is to join the fields with commas, embrace them in quotation marks and double the quotation marks inside the field values. And somehow get rid of the new-line characters. |
|
#3
|
|||
|
|||
|
RE: MySQL Table Export / Dump
The mysqldump utility can do this easily. Look it up on mysql.com in the documentation.
Cheers, Keith. |
|
#4
|
|||
|
|||
|
RE: MySQL Table Export / Dump
I have looked on mysql.com, but unfortunately I cannot quite understand how to put the commands into my php script.
|
|
#5
|
|||||
|
|||||
|
RE: MySQL Table Export / Dump
mysqldump is a command line utility, so you would telnet into the server and run it from there...
mysqldump php Code:
Or, as said above you can write a php program to do this for you if you don't want to use mysqldump... Cheers, Keith. |
|
#6
|
|||
|
|||
|
RE: MySQL Table Export / Dump
you could always use phpmyadmin! It has a feature on how to dump to csv
|
|
#7
|
|||
|
|||
|
RE: MySQL Table Export / Dump
MHOWARD,
Here is an alternative/better solution for you. You can use MyOBDC to import MySQL data directly into an Excel worksheet. Excel will use MS Query as the interface between Excel and the External database. You can get MyOBDC from the below link. http://www.mysql.com/downloads/api-myodbc-2.50.html Hope this helps! |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > MySQL Table Export / Dump |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|