How to connect mysql to Command prompt?

Опубликовано: 03 Июнь 2026
на канале: Passive_engineer
80
6

Step 2: Open Command Prompt

Press Win + R, type cmd, and hit Enter.


🔹 Step 3: Connect to MySQL

Use this command:

mysql -u root -p

-u root → username (replace root with your MySQL username).

-p → asks for password.



---

🔹 Step 4: Enter Password

Type your MySQL password (it will be hidden while typing).

Press Enter.

---

🔹 Step 5: Verify Connection

If successful, you’ll see:

mysql

Now you are inside the MySQL shell.


---

#dbms #cmd #mysql