When I try to create a MySQL username for a user at a particular host, I get the message:
MariaDB [(none)]> create user 'dbwriter'@'test.hat.company.com' identified by 'dbpassword++';
ERROR 1396 (HY000): Operation CREATE USER failed for 'dbwriter'@'test.hat.company.com' is too long for user name (should be no longer than 16)
The problem is that I can't make the string shorter. Some pages advise hard-coding an IP address. That's poor practice and, worse, it won't work with IPv6.
What is the option?