I'm trying to breach a dummy MariaDB database which is vulnerable to SQLI and is storing sensitive data about its users and their passwords. I've collected all the data I could collect, but now how am I supposed to connect to this database and tamper with it? I downloaded MySQL (MariaDB) and I was trying to connect to it by using Bash with this code:
mysql -h hostIPaddress -u username -D dbname -p
But I only get ERROR 2002 (HY000): Can't connect to MySQL server on hostIPaddress
. What's the correct procedure?