Backup, Recovery and Update SIMRS Khanza
Backup, Recovery and Update SIMRS Khanza
Kom
RS Islam Bontang
Hardware Failure
System crash
Disk failure
User / Application Failure
Accidental DROP TABLE or malformed DELETE
FROM statements
Careless when importing data from text
Database content
Log files
Configuration files
On a regular basis
Not during high usage peaks (off hours)
On the database server
At least on a separate file system/volume or hard
disk Drive
Copied to another server
On or off site
Cloud storage
Backed up to tape/disk
Stored on or off site
Using the mysqldump Utility
Using Copies of the MySQL Data Directory
Backup All Databases
C:\xampp\mysql\bin>mysqldump -u root -p --all-databases
> backupalldata.sql
Backup Single Database
C:\xampp\mysql\bin>mysqldump -u root -p sik >
backupdata.sql
Backup Tables
C:\xampp\mysql\bin>mysqldump -u root -p sik
jns_perawatan > backuptable.sql
C:\xampp>mysql_stop.bat
C:\xampp\mysql>xcopy data databackup /y /e /h /k
C:\xampp>mysql_start.bat