Allow access for localhost and named server
You could use this :   

GRANT ALL PRIVILEGES ON *.* TO 'username'@'ip_testserver1', 'username'@'localhost' IDENTIFIED BY 'password';


Of course, feel free to replace the ALL PRIVILEGES by the rights you want to allow to your user, and the *.* with the database name &amp; tables name.