in reply to Restoring a MySQL DB
For example, the following will rebuild your database.
This completely replaces the database schema and repopulates the data.#!/usr/bin/perl use strict; use warnings; use MySQL::Backup; my $filename = "backup_20070329.sql"; my $mb = new MySQL::Backup('mydb','127.0.0.1','user','password',{}); $mb->run_restore_script($filename);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Restoring a MySQL DB
by Negrazo (Initiate) on Apr 13, 2007 at 16:23 UTC |