Footprinting's MySQL box not working properly?

Hello everyone! basically, i’m doing the Footprinting module and im currently in the MySQL lab. I need to enumerate the MySQL server AND log in with provided credentials, in order, the syntax for these actions is:

sudo nmap [IP] -sV -sC -p3306 --script mysql*

mysql -u [username] -[password] -h [IP]

The nmap scan gives me nothing, as in, literally not even a “host is up”
And the mysql login attempt gives me the following error:
ERROR 1040 (HY000): Too many connections

Does anybody else have this problem? any help regarding would be appreciated.

LITERALLY as i posted this both commands started working. lol. ■■■■■ even