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

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

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

    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.

  4. How to connect from windows command prompt to mysql …

    59 I'm trying to connect to mysql server command line from my windows prompt I write the next line in cmd but i get an error.

  5. MySQL command line client for Windows - Stack Overflow

    Feb 14, 2013 · Is there any nice command line MySQL client for windows? I mean a single exe that allows connecting and running a sample query. I've googled and only could find big …

  6. How to execute a MySQL command from a shell script?

    178 How can I execute an SQL command through a shell script so that I can make it automated? I want to restore data I have collected in a SQL file using a shell script. I want to connect to a …

  7. Access mysql remote database from command line

    Apr 8, 2013 · I have a server with Rackspace. I want to access the database from my local machine command line. I tried like: mysql -u username -h my.application.com -ppassword But …

  8. Run MySQL query on remote machine through ssh in command line

    ssh root@host "mysql database -e 'query to run on table_name; more queries to run;'" Same can be done with user@host if that user has permission to execute SQL queries let alone launch …

  9. mysql - Shell - one line query - Stack Overflow

    Jul 21, 2015 · Once logged into shell, why not just use a prepared.sql file? mysql -u user -p Next, enter your user password Now you are logged into shell and you can run commands securely …

  10. How can I access the MySQL command line with XAMPP for …

    Also thanks for the comment about mysqldump - I was under the mistaken impression you access it from the mysql command line instead of the windows command line.