Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Withdata Software
  • Blog
  • Categories
  • Tags

Post navigation

← Previous Next →

How to execute sql file at MySQL command line

by Shiji Pan

Posted on August 29, 2013 by Shiji Pan

If you’re at the MySQL command line mysql> you can declare the SQL file as source, like:

mysql> source 'path/to/test.sql';

Or use the MySQL command line client:

mysql -hhostname -uuser database < path/to/test.sql
  • Facebook
  • Twitter
This entry was posted in Mysql and tagged command line, command line execute sql, Mysql by Shiji Pan. Bookmark the permalink.

Recent Posts

  • Use Cases for Dumping to CSV
  • Convert Text to Speech by CSV / TSV
Withdata Software. ©2004 - 2025 All rights reserved.