About 50 results
Open links in new tab
  1. Execute SQL script from command line - Stack Overflow

    providing a file name containing all my SQL queries is much more handy than providing the SQL query as command-line arguments.

  2. How to connect to SQL Server from command prompt with Windows ...

    Mar 21, 2014 · Sqlcmd -u username -p password assumes a username & password for the SQL Server already setup Alternatively how can I setup a user account from command prompt? I've SQL Server …

  3. How can I import an SQL file using the command line in MySQL?

    Jul 10, 2019 · I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line. I have a Windows Server 2008 R2 installation. I placed the .sql file on the C ...

  4. sql - How do you run a single query through mysql from the command …

    This should be the first result in a google search (for "mysql exec sql from command line") and not the huge mysql site!

  5. How to connect to MySQL from the command line - Stack Overflow

    Feb 27, 2011 · How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.

  6. mysql - How to export and import a .sql file from command line with ...

    Jul 10, 2012 · Well you can use below command to export, mysqldump --databases --user=root --password your_db_name > export_into_db.sql and the generated file will be available in the same …

  7. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · From Workbench: File > Run SQL Script -- then follow prompts From Windows Command Line: Option 1: mysql -u usr -p mysql> source file_path.sql Option 2: mysql -u usr -p '-e …

  8. Where Is Microsoft Command Line Utilities 16? - Stack Overflow

    Mar 9, 2023 · Problem Statement It seems the latest version of Microsoft's Command Line Utilities aren't at the same version that is distributed with SQL Server 2022. SQL Server 2022 delivers bcp and …

  9. Run PostgreSQL queries from the command line - Stack Overflow

    Jul 17, 2025 · But I face few issues sometimes such as if the column name is similar to any reserved keyword of postgresql such as natural in this case similar SQL is difficult to run from the command …

  10. How to download and setup SQLPlus for running SQL commands?

    Are you sure you need SQLPlus and not Oracle SQL Developer? The command-line SQLPlus is useful for some things, but most development is much easier with an IDE like Oracle SQL Developer.