MySQL Forums
Forum List  »  MySQL Workbench

Re: Connect To database error
Posted by: Mike Lischke
Date: October 03, 2013 01:16AM

> Failed to connect to mysql at 127.0.0.1:3306 with
> the user 'XXX'
> Access denied for user 'XXX'@'localhost' (using
> password: YES)

This doesn't make sense. You connect either from localhost or from 127.0.0.1. From a networking standpoint both are the same (for IPv4). The server however sees them as 2 different users. So make sure you have entries for both XXX@localhost and XXX@127.0.0.1 in your users table.

Mike

Mike Lischke, MySQL Developer Tools
Oracle Corporation

MySQL Workbench on Github: https://github.com/mysql/mysql-workbench
On Twitter: https://twitter.com/MySQLWorkbench
On Slack: mysqlcommunity.slack.com (#workbench)
Report bugs to http://bugs.mysql.com
MySQL documentation can be found here: http://dev.mysql.com/doc/refman/8.0/en/

Options: ReplyQuote


Subject
Views
Written By
Posted
1503
October 01, 2013 08:49PM
643
October 02, 2013 01:40AM
591
October 02, 2013 07:18PM
Re: Connect To database error
657
October 03, 2013 01:16AM
610
October 03, 2013 09:45AM
530
October 04, 2013 08:34AM
643
October 07, 2013 01:50AM
501
October 07, 2013 08:20PM
576
October 08, 2013 02:11AM
606
October 08, 2013 08:10PM
500
October 09, 2013 01:25AM
508
October 09, 2013 08:03PM
589
October 12, 2013 09:29PM
536
October 14, 2013 01:32AM
529
October 14, 2013 07:34PM
552
October 10, 2013 09:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.