October 15, 2013

MySQL import/export database from/to .sql

Import
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
Export
mysql -u username -p -h localhost DATA-BASE-NAME > data.sql

  • LinkedIn
  • Tumblr
  • Reddit
  • Pinterest
  • Pocket
DigitalOcean Referral Badge
Keep my site online & receive a $200 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Creative Commons Licence