Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wodesuck authored Nov 28, 2016
1 parent d113429 commit a48dc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phxbinlogsvr/core/mysql/mysql_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int MySqlManager::CreateAdmin(const string &admin_username, const string &admin_
host_list.push_back("127.0.0.1");
host_list.push_back("localhost");
for (auto host : host_list) {
string grant_string = MySqlStringHelper::GetGrantAdminUserStr(admin_username, admin_pwd, ip);
string grant_string = MySqlStringHelper::GetGrantAdminUserStr(admin_username, admin_pwd, host);
int ret = Query(grant_string);
if (ret) {
return ret;
Expand Down

0 comments on commit a48dc39

Please sign in to comment.