ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
#!/bin/bash
backupdir=/[YOUR BACKUP_LOCATION]
for T in `mysql -u [USER] -p[PASSWORD] -N -B -e 'show tables from [DATABASE]'`; do
mysqldump --skip-comments --compact -u [USER] -p[PASSWORD] [DATABASE] $T > $backupdir/$T.sql
done;
Set-Location "$MYSQL_HOME\bin"
& .\mysql.exe -N -s -r -u $dbuser -p$dbpass -e 'show databases' | % { & .\mysqldump.exe -u $dbuser -p$dbpass --single-transaction $_ | Out-File "$BKP_FOLDER\${_}$BACKUPDATE.sql" -Encoding Ascii
}
Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.
TRUSTED BY