unzip -p dbdump.sql.zip | mysql -u root -p dbname
Note
-p flag pipes the output.
Make sure the zip file contains only a single sql file.
Make sure to change dbname to the name of your database on the MySQL server.
unzip -p dbdump.sql.zip | mysql -u root -p dbname
Note
-p flag pipes the output.
Make sure the zip file contains only a single sql file.
Make sure to change dbname to the name of your database on the MySQL server.