About 232,000 results
Open links in new tab
  1. How to connect to MySQL from the command line - Stack Overflow

    Jun 22, 2023 · Connecting from the mysql shell First thing is to ensure you are in sql mode, use: \sql to switch to sql mode from JS or Python mode. To connect to mysql server, use: \connect username@hostname e.g. \connect root@localhost

  2. 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 it gives an error: ERROR 2003 (

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

    I have used following command to connect MySQL Server 8.0 in Windows command prompt. C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u root -p my_db Enter password: **** or. C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u root -p my_db -h localhost Enter password: **** Here my_db is schema name.

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

    From these, MySQL understands that you're trying to connect as the MySQL user joesql. It checks the plugin value of mysql.user for joesql and finds, let's say, caching_sha2_password. Thus, it knows you need a password to connect. From the -p command-line

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

    Mar 30, 2009 · You can access the MySQL command line with XAMPP for Windows. click XAMPP icon to launch its cPanel. click on Shell button. Type this mysql -h localhost -u root and click enter; You should see all the command lines and what they do. Setting environment for using XAMPP for Windows.

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

    Jul 16, 2013 · Open the MySQL command line; Type the path of your mysql bin directory and press Enter; Paste your SQL file inside the bin folder of mysql server. Create a database in MySQL. Use that particular database where you want to import the SQL file. Type source databasefilename.sql and Enter; Your SQL file upload successfully.

  7. Connect to mysql in a docker container from the host

    I was able to connect mysql server 5.7 running on my host using the below command: mysql -h 10.10.1.7 -P 3307 --protocol=tcp -u root -p where the ip given is my host ip and 3307 is the port forwaded in mysql docker. After entering the command type the password for mysql. That is it.

  8. To connect to the MySQL database using MySQL command line …

    For @Abdullah Jibaly solution, after tested in MySQL 5.7, it would only entered into bash terminal prompt, whereby you still need to enter mysql command second time. In order to directly enter into MySQL command line client after run MySQL container with one line of …

  9. Connect to different port using MySql Command Line Client

    Feb 12, 2019 · From command line, assuming you are on the same host, have you tried : mysql --user root --password (mypassword) --host=localhost --port=33061 In server name specify custom port when not using default one (you can imply it only when is the standard mysql port 3306)

  10. MySQL command line client for Windows - Stack Overflow

    Jul 14, 2010 · If you are looking for tools like the the mysql and mysqldump command line client for Windows for versions around mysql Ver 14.14 Distrib 5.6.13, for Win32 (x86) it seems to be in HOMEDRIVE:\Program Files (x86)\MySQL\MySQL Workbench version