The following steps help to upload file.sql
to the MySQL database.
Step 1: Upload file.sql.zip
to any directory and unzip there
Note: sudo apt-get install unzip
: sudo apt-get unzip file.sql.zip
Step 2: Now navigate to that directory. Example: cd /var/www/html
Step 3: mysql -u username -p database-name < file.sql
Enter the password and wait till uploading is completed.