To backup:
mysqldump -u[user] -p [db name] > file.sql
Example: mysqldump -ujoe -p joesdb > file.sql
Notes there is no space between “-u” and “user”.
To restore:
mysql -u [user] -p [db name] < file.sql Example: mysql -u joe -p joesdb < file.sql
Hi thanks for dropping by. Please share the content if you think there is someone who will appreciate it.
Pingback: Moving files to another hosting provider | basri.my
Pingback: Moving files to another hosting provider | basri.my