SQL Injection Fundermentals

Hey, i am new here, i Just started today with Hack the Box.
Im doing right now the Module: SQL Injection Fundermentals.
Im at the First Part of MySQL: Intro to MySQL.
I tryed to use the VM, in the VM of Hack the Box i can use the MATE Terminal. In this Terminal i tryed to write: mysql -u root -p
And after that to write the Password(password).

Everytime i get a errorcode… The Tutorial doesent explane wich Terminal to use… Or If i have to use it. Im completly new Here, totaly noobie.

Can someone pls Help and Tell me how i can complete this so i can Finish this Task ?

Greetings :slight_smile:

Hi there and welcome!

You need to add the IP of your target at the end as this is the MySQL server you are trying to connect to:

mysql -u <username> -p <password> -h <targetIP>

You could also try connecting without the password and if it needs one will come back with a password prompt in which you can then write the password:

mysql -u <username> -h <targetIP>

Hope this helps!