Warning: mysqli_connect(): Unknown MySQL server host
问题 I have some trouble connecting to a mysql server. I can connect using the linux terminal, so I know that my host, port, user, and password works. I cannot, however, connect using PHP. PHP Version: 5.2.17 Server version: 5.5.27-log MySQL Community Server (GPL) Here is a test code example: <?php $link = mysqli_connect('host.com:5306', 'user', 'pass', 'db'); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } if (!mysqli_query(