

Once Compressed, Right click on the File in File Manager and Choose Download. Right Click on the sql file which you are looking to bring to your local and choose Compress to zip format. If you have a huge file, its a good idea to compress the file before downloading. Go to FTP File Manager and Navigate to directory where you have exported the database file. Login to your cPanel of remote server and choose option File Manager Once you have exported the database file, The next task is to get this file to your local machine.

Replace the username and database name with your actual remote db parameters, Once you execute this command it will ask for the database password and will create the export database file in the same directory from where you execute this command.

mysqldump -P 3310 -h localhost -u remote_user -p remote_dbname > filename_to_export.sql Run the following command to export the database. I was looking to export and import it via phpMyAdmin. I faced the similar issue when I was looking to replicate a remote database on my local. If you are using PhpMyAdmin for the database export for the remote database, and if your database is too huge then you may face the timeout issue.
