MariaDB:Bakup and Restore: Difference between revisions
| Line 2: | Line 2: | ||
===Cara 1=== | ===Cara 1=== | ||
*Backing up a single database | *Backing up a single database | ||
shell> mysqldump DB_Name > Backup-Name.sql | |||
*atau | *atau | ||
mysqldump -u DB_Name -p -A > Backup-Name.sql | |||
*Restoring or loading the database | *Restoring or loading the database | ||
shell> mysql DB_Name < Backup-Name.sql | |||
See the [https://mariadb.com/kb/en/mysqldump/ mysqldump] page for detailed syntax and examples. | See the [https://mariadb.com/kb/en/mysqldump/ mysqldump] page for detailed syntax and examples. | ||
| Line 14: | Line 14: | ||
===Cara 2=== | ===Cara 2=== | ||
*BackUp | *BackUp | ||
mysqldump -u DB_USER_OR_ROOT -p MEDIAWIKI_DATABASE_NAME > /opt/mediawiki-migration-backup/db/database.sql | |||
*Resotore | *Resotore | ||
mysql -u bluespice -p bluespice < /opt/mediawiki-migration-backup/db/database.sql | |||
==Source== | ==Source== | ||