MySQL dump using SSH on Mac Terminal


/ Published in: Bash
Save to your folder(s)

Handy when web hosts limit database upload size. Create folder in home directory call "mysql_dump", upload and extract mysql file into this directory. Ask web host to enable SSH.


Copy this code and paste it in your HTML
  1. ssh username@domain.com.au
  2. mysql -u username_db -p username_db < mysql_dump/db_to_be_imported.sql

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.