I have connection issue and its changing ip I use DB 'Mysql 14.14 Distrib 5.7.24' and the OS is 'Ubuntu 18.04'

The DB server have local IP : 10.0.211.198

And For The application IP : 10.0.214.198

when I try connect form application server to db I get error in the connection but After I read it I found the mysql client change IP to Application IP as below screen



But when I try connect using telnet its successfully connected.

I try to remove db and reinstall it also try different client to connect and its same result.

Thank you
I see 2 attempts where 'root' is expected to have a password, then two where it is not.  Did someone change things meanwhile?

It is not "normal" to allow root to come in any way other than via "localhost".  Did someone GRANT access for root from elsewhere?  If not, then should you really be logging in as "root"??

telnet checks the connection.  However, that is not in question -- "Access denied" came from the server back to the client, hence the connection succeeded.