Drush Not detect Database connection
After wasting a few hours I resolve it with adding driver property to $databases in settings.php .

$databases['default']['default'] = array (
  'database' =&gt; 'XXX',
  'username' =&gt; 'XXXX',
  'password' =&gt; 'XXX',
  'prefix' =&gt; '',
  'host' =&gt; '127.0.0.1',
  'port' =&gt; '33067',
  'driver' =&gt; 'mysql',
  'namespace' =&gt; 'Drupal\\Core\\Database\\Driver\\mysql', 
);


I hope this could save another guys time in future in the same problem.