Multi database connection information configuration$db = get_database_connection('mycreate_id'); $all_tables = $db->query("show tables;")->fetchALL(); dpm($all_tables); https://www.drupal.org/project/multiple_databases