如何将个人Mac OS X 10.9.2安全地连接到实时服务器数据库以进行表的数据处理?

I tried to connect to my main server database using the below setup, but I'm getting the following error mysqli_connect() [function.mysqli-connect]: (HY000/2003): Can't connect to MySQL server on ***************** (60) in /Applications/AMPPS/www/tm.php on line 5:

$DB_HOST = 'server.domain.com';
$DB_USER = '********';
$DB_PASS = '********';
$DB_DATABASE = "jackson";
$DB_PORT = "3306";
$db_connect = mysqli_connect($DB_HOST, $DB_USER, $DB_PASS, $DB_DATABASE, $DB_PORT);
$utf8= mysqli_query($db_connect, "SET NAMES 'utf8'");

Could you please help me to solve this problem?

Just use the server credentials on your database settings.

$DB_HOST = 'database_ip';
$DB_USER = 'database_username';
$DB_PASS = 'database_password';
$db_connect = mysqli_connect($DB_HOST, $DB_USER, $DB_PASS);
$utf8= mysqli_query($db_connect, "SET NAMES 'utf8'");

And you're good to go.