Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Export MySQL table to CSV file?

by thunders (Priest)
on Sep 25, 2002 at 20:55 UTC ( [id://200732]=note: print w/replies, xml ) Need Help??


in reply to Export MySQL table to CSV file?

this is not really a perl question, though one could do this in perl fairly easily* with a module like DBI I 've had to do this a number of times, i'd say the best easiest most flexible program that does this is PhpMyAdmin which requires php 3 or 4 and a webserver. Not only does PhpMyAdmin allow a flexible set of options for CSV export, but it also allow you to export SQL or PHP code to recreate your database.

*I say fairly easily but there are a number of gotchas involving dealing with data containg quotation marks and/or commas. There are functions in DBI that will make quoting these strings a bit easier.

Replies are listed 'Best First'.
Re: Re: Export MySQL table to CSV file?
by LTjake (Prior) on Sep 25, 2002 at 22:07 UTC
    As for a perl solution, gossamer-threads has a product called MysqlMan. It's based off of PHPMyAdmin. I've used it on many occasions. The best feature, imo, is the ability to make a dump file of all of the data in a database.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found