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

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

    Your one is C:\MYSQL\bin\ so choose this directory in command line and type: NET START MySQL (After that you can open Windows Task Manager and verify in Processes tab is …

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

  4. How to select a MySQL database through CLI? - Stack Overflow

    Nov 9, 2023 · I've managed to get into MySQL using the command line terminal, but when I tried to enter some SQL, it said 'no database selected' how do I select a database? my database …

  5. How to import an SQL file using the command line in MySQL?

    Jul 16, 2013 · I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line. I have a Windows Server 2008 R2 installation. I placed the …

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

    Jan 20, 2012 · If you’re at the MySQL command line mysql> you have to declare the SQL file as source. mysql> source \home\user\Desktop\test.sql;

  7. MySQL command line won't open? - Stack Overflow

    Dec 22, 2010 · If so, you need to call the prompt with "mysql -u <username> -p" and it will provide you with a prompt to enter your password. Upon successfully entering the password, you …

  8. How do you run a single query through mysql from the command …

    Oct 21, 2009 · 385 mysql -u <user> -p -e 'select * from schema.table' (Note the use of single quotes rather than double quotes, to avoid the shell expanding the * into filenames)

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

  10. How do I restore a dump file from mysqldump? - Stack Overflow

    mysql -p -u[user] < db_backup.dump To run these commands, open up a command prompt (in Windows) and cd to the directory where the mysql.exe executable is (you may have to look …