Checking Database Hostnames
The value you enter into the wizard as the database hostname must match the value you entered for the hostname (if any) when you configured the database.
For example, if you entered the following for the Activity Monitor database
grant all on activity_monitor.* TO 'amon_user'@'localhost' IDENTIFIED BY 'amon_password';
the value you enter here for the database hostname must be localhost. On the other hand, if you had entered the following when you created the database
grant all on activity_monitor.* TO 'amon_user'@'myhost1.myco.com' IDENTIFIED BY 'amon_password';
the value you enter here for the database hostname must be myhost1.myco.com. If you did not specify a host, or used a wildcard to allow access from any host, you can enter either the fully-qualified domain name (FQDN) here, or localhost. For example, if you entered
grant all on activity_monitor.* TO 'amon_user'@'%' IDENTIFIED BY 'amon_password';
the value you enter here for the database hostname can be either the FQDN or localhost. Similarly, if you entered
grant all on activity_monitor.* TO 'amon_user' IDENTIFIED BY 'amon_password';
the value you enter here for the database hostname can be either the FQDN or localhost.