Description:
When you try to add a server that does not have a user with the appropriate privileges to be managed by Fabric the following error is printed out:
DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO)", 1045)
The message though is contradictory as Fabric manages to connect to the server. The problem here is that there is no user with the appropriate privileges.
How to repeat:
1 - Configure an invalid user (e.g. user) in the "servers" section.
2 - Start Fabric.
3 - Create a group (e.g. my_group).
4 - Try to add a server to the group as follows:
$ mysqlfabric group add my_group localhost:13001
Procedure :
{ uuid = 1d22728f-5b06-4551-96d6-a09ab012a312,
finished = True,
success = False,
return = DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'alfranio'@'localhost' (using password: NO)", 1045),
activities =
}
Suggested fix:
Improve the error message.
Description: When you try to add a server that does not have a user with the appropriate privileges to be managed by Fabric the following error is printed out: DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO)", 1045) The message though is contradictory as Fabric manages to connect to the server. The problem here is that there is no user with the appropriate privileges. How to repeat: 1 - Configure an invalid user (e.g. user) in the "servers" section. 2 - Start Fabric. 3 - Create a group (e.g. my_group). 4 - Try to add a server to the group as follows: $ mysqlfabric group add my_group localhost:13001 Procedure : { uuid = 1d22728f-5b06-4551-96d6-a09ab012a312, finished = True, success = False, return = DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'alfranio'@'localhost' (using password: NO)", 1045), activities = } Suggested fix: Improve the error message.