About 141,000 results
Open links in new tab
  1. How to connect from windows command prompt to mysql command …

    C:\> cd /d D:\MYSQL\Bin D:\MYSQL\Bin>mysql -u root -p admin The .exe after mysql is optional, since .exe is an executable extension on Windows. If you type mysql, Windows will automatically look for …

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

  3. How do you run a single query through mysql from the command line?

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

  4. How to execute MySQL command from the host to container running …

    To connect to the MySQL database using MySQL command line client. I connect to the bash into the running MySQL container: $ docker exec -t -i container_mysql_name /bin/bash -i is the shortcut for - …

  5. Running/Starting MySQL without installation on Windows

    May 7, 2017 · Most of the search attempts yield results that either assume that msi installation have taken place or are far too complex for someone who is still attempting to learn MySQL basics. TL;DR …

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

    Your MySQL binaries should be somewhere under your XAMPP folder. Look for a /bin folder, and you'll find the mysql.exe client around. Let's assume it is in c:\xampp\mysql\bin, then you should fireup a …

  7. Can't run MySQL from command prompt - Stack Overflow

    May 6, 2025 · You need to place mysql in your environment variable PATH in order to run it from the command prompt, if you are not in bin directory of mysql. On windows 7 (should be similar for 8):

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

  9. Mac install and open mysql using terminal - Stack Overflow

    If you have your MySQL server up and running, then you just need a client to connect to it and start practicing. One is the mysql-client, which is a command-line tool, or you can use phpMyAdmin, which …

  10. mysql - Run sql script using batch file from command prompt - Stack ...

    May 26, 2015 · When I run the above lines in command prompt it works fine but when I save it as a batch file and run the file it connects to mysql but doesn't perform the sql scripts.