If you want to connect to your database from an application or a PHP script on your UltaHost hosting account, you can simply use localhost as MySQL hostname.
If you’re accessing your database from a remote server, you need to grant it access first and then use your domain name as the hostname.