Dr. Nab Raj Roshyara
Dr. Nab Raj Roshyara

Reputation: 21

Remote mysql connection can not be established / host is not allowed

-I can connect mysql server with telnet locally

Trying 161.54.46.221...
Connected to 161.54.46.221.
Escape character is '^]'.
[
 u▒k#^oI_~(Bh?caching_sha2_password

Could you please help regarding this problem? I would be thankful

Upvotes: 1

Views: 926

Answers (1)

Dr. Nab Raj Roshyara
Dr. Nab Raj Roshyara

Reputation: 21

  • I got the answer now . The way how I went for remote connection process was all correct. It was actually easy. But I spent a huge amount time on it for such a small thing
  • I set host as the ip address in the user table
  • The user was saved as 'readUser'@'161.54.46.221'. What I just had to do is to save user as 'readUser'@'%'. So use the following command to change your host as following and then all should work now.
    USE mysql; 
    Update user set host='%' where user='readUser'; 
    FLUSH PRIVILEGES;
    
    
    
    

Upvotes: 0

Related Questions