41,800 results
Open links in new tab
  1. Executing an SQL Script From the Command Line - Baeldung

    Apr 20, 2024 · In this article, we discussed how to execute a .sql script for MySQL from the Bash command line. First, we looked at …

  2. mysql - How to execute a .sql script from bash - Stack Overflow

    Sep 30, 2011 · Basically, I need to setup a database from a bash script. I have a script db.sql that does all this. Now how do I run this …

  3. Download and Install the sqlcmd Utility - SQL Server

    Sep 21, 2026 · It runs on Windows, macOS, Linux, and in containers. sqlcmd (ODBC): The platform-aligned, ODBC-based sqlcmd, …

  4. Use sqlcmd - SQL Server | Microsoft Learn

    Sep 21, 2026 · In macOS and Linux, you can use the built-in terminal emulator. Type sqlcmd in the console, followed by a list of …

  5. 6.5.1 mysql — The MySQL Command-Line Client

    mysql is a simple SQL shell with input line editing capabilities. It supports interactive and noninteractive use. When used …

  6. command line - How to use SQL in terminal? - Ask Ubuntu

    Oct 4, 2013 · Here is the syntax to execute sql statement from terminal. I'm assuming that you are using MySQL. Syntax: …

  7. Mastering `sqlcmd` on Linux - linuxvox.com

    2 days ago · This comprehensive guide covers everything you need to know about using `sqlcmd` on Linux: core concepts, modern …

  8. How to Run MySQL Queries from Linux Command Line - Tecmint

    Nov 27, 2025 · In this article, learn to execute MySQL queries via Linux command line, save results to files, automate reports, and …

  9. How do you execute SQL from within a bash script?

    I have some SQL scripts that I'm trying to automate. In the past I have used SQL*Plus, and called the sqlplus binary manually, from a …

  10. How to Run an SQL File in MySQL (or MariaDB) on Linux/Ubuntu

    Sep 13, 2022 · Here is an article outlining several methods for running SQL files in MySQL on Linux/Ubuntu.