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

    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 …

  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 …

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

  4. Running/Starting MySQL without installation on Windows

    May 7, 2017 · Here are the steps to start MySQL Server (mysql-8.0.30-winx64), without installation, for the first time on Windows: Create a new folder named "data" in MySQL …

  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. How can I access the MySQL command line with XAMPP for …

    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 …

  7. How to execute MySQL command from the host to container …

    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 …

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

  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 …

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

    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.