Hello,
How to backup the database from the commandline?
How to backup database from the commandline?
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: How to backup database from the commandline?
Hello Jackk,
Please use the below command for taking database backup
mysqldump database_name > database_name.sql
and also restore from backup use below command
mysql database_name < database_name.sql
Please use the below command for taking database backup
mysqldump database_name > database_name.sql
and also restore from backup use below command
mysql database_name < database_name.sql
Re: How to backup database from the commandline?
Hello,
You have multiple options.. The above mentioned option is to take backup and restore the database from the commandline ( cli ). Additionally, you can take db backup using the phpmyadmin export database option, which is more convenient for normal users.
You have multiple options.. The above mentioned option is to take backup and restore the database from the commandline ( cli ). Additionally, you can take db backup using the phpmyadmin export database option, which is more convenient for normal users.
-
Steve N
Support Staff
Nixtree Solutions LLP
cPanel Server management | Managed Backup Solutions | Outsourced Web Hosting support
Steve N
Support Staff
Nixtree Solutions LLP
cPanel Server management | Managed Backup Solutions | Outsourced Web Hosting support