I have a scheduled mysqldump task that uses the --all-databases option. This includes all databases in one file.
How can I tell mysql to import ONE of the databases contained in the dump file?
-M
Thanks for the answer guys. Much appreciated... I ended up not using the --all-databases option. Here's an alternative script:
#! /bin/bash
date=`date +%A`
for i in /var/lib/mysql/*/; do
dbname=`basename $i`
mysqldump -u <whatever username> --password=<whatever pw>--single-transaction $dbname > <path>/$date/$dbname-backup.sql
done