perl

Dump mySQL databases to .csv

This script converts each table in each mySQL database found into a .csv-file. #!/usr/bin/perl -w #—————————————————————————– # # Name mySQL2csv.pl # # Description : # Convert database tables to csv files # # Limitations: # It doesn’t look very efficient looping over a hash for each row # usage: # mySQL2csv.pl # #—————————————————————————– ##### Standard […]

Dump mySQL databases to .csv Read More »

Perl database functions

A library of database functions, using just DBI ########################################################################### # # Name         dbfunctions.pm # Description : #  Perl library for database functions # ########################################################################### sub dbFunctions { print “Functions in dbfunctions.pmn”; print “====================n”; print “openDBn”; print ”   Open the mysql database.n”; print “doDBI (<SQL>) n”; print ”   Execute <SQL> on database opened on dbhn”; print

Perl database functions Read More »