MySQL DB back can be taken as below Terminal command
sudo mysqldump -p mailhub >/home/pasindu/a.sql
restore mysql DB using the below command
mysql -u username -p database_name < backup_name.sql
Below commands are used to stop mysql service
sudo service mysql stop
or
sudo systemctl stop mysql
Below command is used to start mysql service
sudo service mysql start
No comments:
Post a Comment