Drupal: where is my mysql config?

For recent versions of Drupal the default MySQL client config can be found in [INSTALL]/sites/default/settings.php as a mysqli connect string.

mysqli://root:paswordgoeshere@localhost

Replace “root” and “localhost” with the actual user and host for your target MySQL server.