连接到mysql和@localhost似乎是一个众所周知的问题:
在以下情况下连接:
mysql -uadmin2 -p
不连接时(重复@localhost)
$ mysql -uadmin2@localhost -p
Enter password:
ERROR 1045 (28000): Access denied for user 'admin2@localhost'@'localhost' (using password: YES)
下面转储的是特定用户的 mysql.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)
显示来自 dbVisualizer 的错误的屏幕截图:
我尝试了他们论坛上推荐的内容,这是其他人抱怨的地方
grant all privileges on *.* to 'admin3'@'%' identified by 'mypass' with grant option;
但为他们工作,但不是我!
FWIW 其 MAMP 运行版本 5.5.33 的 mysql。我已经刷新了权限,尝试使用 IP 地址,将字段留空(根据屏幕截图),在这里查看了类似的解决方案,现在我没有想法了。
任何人有任何进一步的建议,我将非常感激。
谢谢
凯文