About 1,720,000 results
Open links in new tab
  1. 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 ...

  2. 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.

  3. 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.

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

    You can execute SQL statements in a script file (batch file) like this: shell> mysql db_name < script.sql > output.tab Put the query in script.sql and run it.

  5. 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 …

  6. How to check SQL Server version - Stack Overflow

    Dec 3, 2013 · What are the possible ways to determine the deployed SQL Server version? I’ve tried to do it using the SQL Server software. I want to do it using a command line SQL statement.

  7. how to execute SQL statements in command prompt (CMD)

    Jan 7, 2014 · 12 You are looking for the sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files at the command prompt

  8. 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 …

  9. How do I pass arguments to a PL/SQL script on command line with …

    Sep 20, 2016 · Firstly, you will need to invoke your script like so: sqlplus.exe MYUSER/mypassword@HOST030 @refreshDataOnOracle.sql foo bar Instead of the OS redirection …

  10. How to I run a single sql command from the sqlcmd prompt?

    In SQL Server, if I want to run a script from the command line, I can do this