When I try to connect to the sql server and enter the following in command prompt:
shell> mysql --user=username--password=password db_name
On Windows -
Open Command Prompt and type:
mysql [database name] -u [user name] -p
It worked for me when no other solutions worked. Hope this solves your issue as well.