I am on Windows 10 desktop with a Cloudera VM running on it. From inside the coudera vm Linux OS, I can login to MySQL with:
mysql -ucloudera -pcloudera
When I try to connect to the MySQL inside Cloudera VM from my windows machine, using JDBC, I get this error: (my windows computer name is a TV with no domain name)
java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'cloudera'@'tv.lan' (using password: YES))
jdbc:mysql://quickstart.cloudera:3306/infa_mdm user = cloudera password = cloudera
How do I disable this automatic addition of domain name at the end? Or is there any other way to resolve this?

'cloudera'@'%'). It works in the first case because MySQL will infer that as'cloudera'@'localhost'or something like that.