title: Lost connection to MySQL server during query on remote host
body: <p>I'm working with cppcms framework with cppdb and mysql and got "Lost connection to MySQL server during query" error when trying to make a query on a remote database.</p>
  
  <p>I also have the same database locally, and the app works ok with that one.</p>
  
  <p>Remote mysql version:
  mysqld  Ver 5.5.29-0ubuntu0.12.10.1 for debian-linux-gnu on i686 ((Ubuntu))</p>
  
  <p>Thanks for your help</p>