Hi,
It seems like your host from where you are running Sqoop command is not able to connect on the machine where your mysql is installed.
Kindly run the below command to check the connectivity.
## telnet <hostname> 3306
Note:- Hostname is the host where you have installed mysql database.
In the sqoop command i can see you have provided "localhost" double check it is the one where mysql database is installed.
Below is the command to get the full hostname of the host.
## hostname -f