title: PHP: Remote MySQL connections very slow
body: <p>I have two servers, both running CentOS 5.7 and cPanel-CURRENT. One is x86 and the other is x64. Both are using Apache 2.2.21, PHP 5.3.8 and MySQL 5.1.</p>
  
  <p>If I query the local database on any one of the servers, the results are returned instantly. In this instance a few thousand results are being returned. However running the same query from one server to another and the query takes 10+ seconds to complete.</p>
  
  <p>If I use MySQL Workbench 5.2 to query the remote database from my workstation with the same query, it completes in less than a second, which makes me think there's a problem with PHP or something else server-related.</p>
  
  <p>Has anyone else encountered this issue before and know how to resolve it? Any help would be greatly appreciated.</p>