About 601,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. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · mysql -u root -proot -D database -e "source /path/to/script.sql" This command will execute source /path/to/script.sql once connected to the server, which execute your script.

  4. How to find out the MySQL root password - Stack Overflow

    Jun 5, 2012 · I cannot figure out my MySQL root password; how can I find this out? Is there any file where this password is stored? I am following this link but I do not have directadmin …

  5. How to clear MySQL screen console in Windows? - Stack Overflow

    To clear MySQL console screen, type the following command: mysql> \! cls Explanation: \! is used to execute system shell commands cls is a command to clear the Windows command prompt …

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

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

  8. How do I find out my MySQL URL, host, port and username?

    Nov 4, 2010 · I need to find my MySQL username. When I open the MySQL command line client, it only asks me for my password. I don't remember my username. And for connectivity with …

  9. How do you use MySQL's source command to import large files in …

    What you want to do is use the MySQL Client to do the work for you. Make sure MySQL is running. Create your database via phpMyAdmin or the MySQL shell. Then, run cmd.exe, and …

  10. How to log in to MySQL and query the database from Linux …

    1.- How do I get mysql prompt in linux terminal? mysql -u root -p At the Enter password: prompt, well, enter root's password :) You can find further reference by typing mysql --help or at the …