title: How to connect to sql remote database from linux shared hosting
body: <p>I have an application developed in laravel that communicate with 2 databases, once is mysql it's in linux shared hosting. The another is sql and is in a remote server.</p>
  
  <p>In localhost it's work well, I use <code>sqlsrv driver</code> to communicate with sql database but when I pass the project to shared hosting it can't connect with database, just with mysql database.</p>
  
  <p>What I have to ask the hosting provider specifically?</p>
  
  <p>This is my connections parameters:</p>
  
  <pre><code>'mysql' =&gt; [
          'driver' =&gt; 'mysql',
          'host' =&gt; env('DB_HOST', '127.0.0.1'),
          'port' =&gt; env('DB_PORT', '8889'),
          'database' =&gt; env('DB_DATABASE', 'dbname'),
          'username' =&gt; env('DB_USERNAME', 'user'),
          'password' =&gt; env('DB_PASSWORD', 'pass'),
          'prefix' =&gt; '',
      ],
  
      'sql' =&gt; [
          'driver' =&gt; 'sqlsrv',
          'host' =&gt; env('DB_HOST', 'remote_ip'),
          'database' =&gt; env('DB_DATABASE', 'dbname'),
          'username' =&gt; env('DB_USERNAME', 'user'),
          'password' =&gt; env('DB_PASSWORD', 'pass'),
          'charset' =&gt; 'utf8',
          'prefix' =&gt; '',
      ],
  </code></pre>