title: Symfony2 can't connect to MySQL server on '192.168.1.50' (113)
body: <p>I have remote mysql server @192.168.1.50.
  I can access it through [<a href="http://192.168.1.50/phpmyadmin/]" rel="nofollow">http://192.168.1.50/phpmyadmin/]</a> on my pc,
  or by using </p>
  
  <pre><code>ssh root@192.168.1.50
  </code></pre>
  
  <p>But in Symfony2 when I run</p>
  
  <pre><code> php app/console doctrine:schema:update --force  gives me error
  
  [PDOException]                                                               
    SQLSTATE[HY000] [2003] Can't connect to MySQL server on '192.168.1.50' (113  
   )
  </code></pre>
  
  <p>my parameter.yml</p>
  
  <pre><code>parameters:
  database_driver: pdo_mysql
  database_host: 192.168.1.50
  database_port: 3306
  database_name: xxhealthdb
  database_user: kproduction
  database_password: xxroot
  mailer_transport: smtp
  mailer_host: 127.0.0.1
  mailer_user: null
  mailer_password: null
  locale: en
  secret: ThisTokenIsNotSoSecretChangeIt                                                                          
  </code></pre>
  
  <p>I think there must be some thing wrong in this file or may be anything else from which I am unaware. Please help me</p>
  
  <p>Note: I am using MariaDB and CentOS for remote server and Ubuntu for my(client) PC.</p>
  
  <p>my log details</p>
  
  <pre><code>      2015-01-31 17:35:20] event.DEBUG: Notified event "console.command" to listener    "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
      [2015-01-31 17:35:20] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
   [2015-01-31 17:35:20] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
    [2015-01-31 17:35:20] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
     [2015-01-31 17:35:20] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onTerminate". [] []
      [2015-01-31 17:35:20] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onTerminate". [] []
  </code></pre>