For exporting database more than certain size, PHPMYADMIN will give you timeout errors. For effective tackling the same, we need to do it via SSH. Here am going to show you, how to do it in linux server.
1) Enable Shell access in server
In your cpanel, dashboard you can see "manage Shell" option. Just click on that.
After that, we have to enable SSH access. Then we will get ssh port and details through this. If you want to use external terminal access softwares like putty, you can use those connection details. But here am explaining about how we can do in the server itself without using any external softwares.
2) Access Terminal of server
Click on Terminal menu in Advanced tab of cpanel. You will get a terminal to enter commands.
3) Executing commands in Terminal
Now from step 3, open the terminal. we have to put one command here..
mysqldump -u dbuser_user -p dbname > /home/folderuser/public_html/dbbackup/db.sql
(dbuser: Put the database username, dbname:Put the db name, db.sql: Give the database file name, path should be given relatively in repect to where you want the exported sql file)
Then it will ask for db user password just provide that. Now the command will execute and database will be exported successfully.
1) Enable Shell access in server
In your cpanel, dashboard you can see "manage Shell" option. Just click on that.
After that, we have to enable SSH access. Then we will get ssh port and details through this. If you want to use external terminal access softwares like putty, you can use those connection details. But here am explaining about how we can do in the server itself without using any external softwares.
2) Access Terminal of server
Click on Terminal menu in Advanced tab of cpanel. You will get a terminal to enter commands.
3) Executing commands in Terminal
Now from step 3, open the terminal. we have to put one command here..
mysqldump -u dbuser_user -p dbname > /home/folderuser/public_html/dbbackup/db.sql
(dbuser: Put the database username, dbname:Put the db name, db.sql: Give the database file name, path should be given relatively in repect to where you want the exported sql file)
Then it will ask for db user password just provide that. Now the command will execute and database will be exported successfully.
No comments:
Post a Comment