Seems to be a well known issue with connecting to mysql and the @localhost:
Connects when:
mysql -uadmin2 -p
Does not connect when (duplicate @localhost)
$ mysql -uadmin2@localhost -p
Enter password:
ERROR 1045 (28000): Access denied for user 'admin2@localhost'@'localhost' (using password: YES)
Dumped below is the mysql.user for the particular user.
mysql> select * from mysql.user where user='admin2'\G
*************************** 1. row ***************************
Host: localhost
User: admin2
Password: *ECED01ACC1794471BCD067ECFEF085F99EDBFA23
Select_priv: Y
Insert_priv: Y
Update_priv: Y
Delete_priv: Y
Create_priv: Y
Drop_priv: Y
Reload_priv: Y
Shutdown_priv: Y
Process_priv: Y
File_priv: Y
Grant_priv: Y
References_priv: Y
Index_priv: Y
Alter_priv: Y
Show_db_priv: Y
Super_priv: Y
Create_tmp_table_priv: Y
Lock_tables_priv: Y
Execute_priv: Y
Repl_slave_priv: Y
Repl_client_priv: Y
Create_view_priv: Y
Show_view_priv: Y
Create_routine_priv: Y
Alter_routine_priv: Y
Create_user_priv: Y
Event_priv: Y
Trigger_priv: Y
Create_tablespace_priv: Y
ssl_type:
ssl_cipher:
x509_issuer:
x509_subject:
max_questions: 0
max_updates: 0
max_connections: 0
max_user_connections: 0
plugin:
authentication_string:
1 row in set (0.00 sec)
Screenshot showing error from dbVisualizer:
I tried what was recommended on their forum which was this where someone else complained the same
grant all privileges on *.* to 'admin3'@'%' identified by 'mypass' with grant option;
but worked for them but not me!
FWIW its MAMP running version 5.5.33 of mysql. I've flushed privileges, tried using the ip address, left field blank (as per screenshot), looked at a similar solution here and am out of ideas now.
Anyone got any further suggestions then I will be very grateful.
Thanks
Kevin