About 68 results
Open links in new tab
  1. command line - How to use SQL in terminal? - Ask Ubuntu

    Oct 4, 2013 · I want to create simple tables, insert values in it, and do queries. How to perform them in the terminal?

  2. mysql - Run sql file in database from terminal - Stack Overflow

    Apr 30, 2019 · I have a server and within that server I have an sql script in the /var/www/ directory. That script is to create tables and databases. I need to know how to execute this sql script from terminal or...

  3. How can I access the MySQL command line with XAMPP for Windows?

    2 To access SQL via the command line we simply navigate to the xampp folder. the folder is usually on the c:\ drive. type: cd c:\xampp\mysql\bin then press enter. type: in mysql -u root -p then press enter. …

  4. How can I import a database with MySQL from terminal?

    Dec 28, 2010 · Open terminal Enter command mysql -u root -p < sakila-schema.sql Enter command mysql -u root -p < sakila-data.sql Now enter command mysql -u root -p and enter your password, …

  5. Restore a postgres backup file using the command line?

    For e.g. on Ubuntu without doing su postgres anywhere from terminal $ psql -h localhost -U postgres -W -d DB_NAME < DB_BACKUP.sql is the command which worked for me to restore my backup on my …

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

  7. 12.04 - How to run mysql command from terminal? - Ask Ubuntu

    Sep 5, 2013 · How can you run any command without login to MySQL? First in terminal you have to login using your MySQL username and password Eg: mysql -uroot -p then once loged in select your …

  8. How to execute SQL statement from command line? - Ask Ubuntu

    Jul 19, 2018 · I'm a longtime GUI user trying to switch to command line, and I'm not sure how to execute an SQL statement from the Ubuntu command line. I'm using postgres. I can use \\c to connect to the …

  9. How to log in to MySQL and query the database from Linux terminal?

    3 In Ubuntu, all I have to do ran is sudo mysql in GNOME terminal and that's it. I can start making databases or query a data in table, etc.

  10. How to clear console (terminal) with sqlcmd in sql server (mssql ...

    Aug 25, 2022 · With SQLite command below, I could clear console (terminal) in sqlite3 command-line client on Windows: sqlite>.shell cls But, with sqlcmd, I couldn't find how to clear console (terminal) in …