Hello everyone,
I want to grant access to mysql server located at 192.168.0.2 to user test with 192.168.0.4 IP.
I log into mysql as root and enter:
GRANT ALL PRIVILEGES on . to test@192.168.0.4 identified by 'userpasswd';
Then flush privileges;
However when I try to connect from 192.168.0.4 I get an error.
It only works when I put the above IP and hostname into /etc/hosts. But shouldn't it work without the need of adding it?
I run redhat 8.0 and mysql 3.23.54
Any thoughts?
Thanks