User Tools

Site Tools


computing:linux:mysql_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:mysql_backup [2018/10/01 14:32]
gcooper
computing:linux:mysql_backup [2018/10/01 14:33] (current)
gcooper
Line 15: Line 15:
 </file> </file>
  
-====== PostgreSQL Password ======+===== PostgreSQL Password =====
  
 For scripts that run as ''root'': For scripts that run as ''root'':
Line 128: Line 128:
 </file> </file>
  
-===== Restore A MySQL Backup =====+====== Restore A MySQL Backup ======
  
 One-liner to restore a gzipped MySQL backup: One-liner to restore a gzipped MySQL backup:
Line 135: Line 135:
 gunzip < mysql-database-name.sql.gz | mysql -p -h localhost mysql-database-name gunzip < mysql-database-name.sql.gz | mysql -p -h localhost mysql-database-name
 </file> </file>
-gunzip < mysql-sonoracomm_whmcs-database.sql.gz | mysql -p -h localhost sonoracomm_whmcs+ 
 +:!: You will need to enter the database password of the database on 'localhost' being restored to.
computing/linux/mysql_backup.1538425930.txt.gz · Last modified: 2018/10/01 14:32 by gcooper