opened
MeyerJL
username_0
My scenario is such that my application uses 3 different database components, however I do not call any of these database components 'db'. When I click to go to the db panel of the debug module, I am presented with Unknown component ID: db

I also haven't tested it but I'm not sure how the new explain feature would work if you did have multiple databases and queried multiple databases. It seems like you could only have explains for a single database or you would have to somehow create multiple panels for each and it wouldn't make any sense to try and run an explain for a query from "DatabaseA" on "DatabaseB" or vice versa. Perhaps i'm overlooking something here though?
New EXPLAIN feature breaks db debug when no 'db' component setup
issue
created
githubjeka
username_1
May be:

https://github.com/yiisoft/yii2-debug/blob/master/Module.php#L54
https://github.com/yiisoft/yii2-debug/blob/master/panels/DbPanel.php#L37
comment
created
MeyerJL
username_0
I set the following in my config and it ended up yeilding 2 database panels, but the same queries were listed on both. My database doesn't support explain so I wasn't able to test how that reacted when I did this but I imagine it probably would cause issues since i'm not sure how it knows which queries belong to which database.

```

    $config['modules']['debug']['panels'] = [
         [
            'class' => 'yii\debug\panels\DbPanel',
            'db' => 'mfg'
        ],
        [
            'class' => 'yii\debug\panels\DbPanel',
            'db' => 'ftdb'
        ]
    ];
```
comment
created
samdark
username_2
Fixed by https://github.com/yiisoft/yii2-debug/commit/63c1d83174f96bd534bed1677e680f007f7a2444
comment
closed
samdark
username_2
issue