BrowserCRM database backup and restore

There is a wide choice of tools for working with MySQL databases. We recommend:

  • SqlYog Community Edition
  • the mysql command line
  • the control panel at your ISP

backup

You can easily backup (or 'export') the database using any GUI tool, including phpMyAdmin or SqlYog. Or you can use a MySQL utility called mysqldump from the command line.

command line dump

To backup a database named 'browsercrm' run:

mysqldump -u [username] -p[password] browsercrm > browsercrm_dump.sql
(there must be no space between -p and the password)

Or, to backup and zip as a gzip file:

mysqldump -u [username] -p[password] browsercrm | gzip > browsercrm_dump.sql.gz

See the MySQL manual for mysqldump

web host / ISP control panel

If you are on a Webhost or ISP and don't have shell access, your ISP will likely have a control panel section for making and downloading MySQL backups.

restoring a mysql database

command line restore

To restore a database from a file 'browsercrm_dump.sql' to a database 'browsercrm' run:

mysql -u [username] -p[password] browsercrm < browsercrm_dump.sql

there must be no space between -p and the password.

Or, to restore from a gzip file:

gunzip browsercrm_dump.sql.gz
mysql -u [username] -p[password] browsercrm < browsercrm_dump.sql
 
browsercrm_database_backup_and_restore.txt · Last modified: 2010/05/17 21:51 by 203.97.219.50
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki