Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
107 views
in Technique[技术] by (71.8m points)

mysql -uuser1 -p -h127.0.0.1 -- host地址不是我指定的地址?

mysql -uuser1 -p -h127.0.0.1
登录mysql的时候,返回的结果是

ERROR 1045 (28000): Access denied for user 'user1'@'gateway' (using password: YES)

为什么返回的结果是 'user1'@'gateway' ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你这个错误提示是没有权限登录,可能有以下几种情况:
1、密码输入错误
2、没有输入端口,端口不是默认的3306
3、也有可能是你mysql服务没有起来,查看mysql服务


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...