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

    Aug 9, 2017 · You can simply type mysql in a terminal and you can get do anything sql related you want. It is possible that you have create to a role in your database with your username.

  2. command line - Open MySQL from the terminal - Stack Overflow

    Dec 27, 2017 · In the terminal, to open MySQL, type the following (you'll be asked for the password for your connection): mysql -u root -p You can change root to whatever the MySQL …

  3. MySQL - How to run SQL file or script from the terminal

    Nov 2, 2021 · When you need to run a saved .sql file directly from the terminal, you can use the mysql command line client. You can run SQL scripts with or without opening a connection to …

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

    Jun 22, 2023 · Use the following command to get connected to your MySQL database. mysql -u USERNAME -h HOSTNAME -p. Use below command to do the login to remote mysql server. …

  5. How To Use MySQL From The Command Line [With Examples]

    Apr 1, 2025 · #1) Open the shell/terminal in Mac/Linux (or command prompt in Windows) #2) If the MySQL shell path is added to the environment variable, you can execute the command …

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

    May 19, 2017 · For you to run it from terminal, you need to be logged into mysql first and then you execute your program. The ideal code would be mysql -u(username) -p(password) (the name …

  7. 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 the steps to connect to a MySQL server and also explored …

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

    Jan 20, 2012 · you can execute mysql statements that have been written in a text file using the following command: if your database has not been created yet, log into your mysql first using: …

  9. Learn SQL - Online SQL Terminal - Practice SQL Querys

    Practice SQL querys with an online terminal. Solve SQL query questions using a practice database. Learn and improve your SQL skills.

  10. MySQL/MariaDB: Run SQL Queries From A Shell Prompt / …

    Sep 9, 2015 · The mysql command line has option to execute the SQL statement and quit. This is also useful for running sql queries from a shell script or the bash prompt. [donotprint] …

  11. Some results have been removed
Refresh