If you want to connect to your database from an application or a PHP script on your ChemiCloud 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 following the instructions in our Remote MySQL tutorial and then use your domain name as the hostname.