Skip to content

Commit d113429

Browse files
committed
fix CheckReplicaUser
1 parent 059c4f6 commit d113429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phxbinlogsvr/core/mysql/mysql_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ int MySqlManager::CheckUserGrantExist(const string &username, const string &pwd,
169169
const string &grant_flag_string) {
170170

171171
MySqlOption mysql_option;
172-
mysql_option.ip = "127.0.0.1";
172+
mysql_option.ip = option_->GetBinLogSvrConfig()->GetEngineIP();
173173
mysql_option.port = option_->GetMySqlConfig()->GetMySQLPort();
174174
mysql_option.username = username;
175175
mysql_option.pwd = pwd;

0 commit comments

Comments
 (0)