Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Product
  • Purchase
  • Download
  • Contact Us
  • About
  • Privacy Policy

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
  • YouTube
This entry was posted in Mysql and tagged command line, command line execute sql, Mysql by Shiji Pan. Bookmark the permalink.

Recent Posts

  • Batch convert TXT files to Excel files
  • Convert TXT to CSV
  • Batch convert TXT files to CSV files
  • Merge multiple TXT files into one CSV
  • Batch convert SQL files to Excel files
Withdata Software. ©2004 - 2025 All rights reserved.