Open alberto56 opened 2 years ago
Did Drupal change or Drush changed?
It would be good to link to the issue where mysqli became unusable.
@weitzman I think Drush has changed because based on my tests mysqli works with Drupal 9 and Drush 11.0.5, but not with Drupal 9 and Drush 11.0.6.
I found a reference to mysqli in the diff between 11.0.5 and 11.0.6, this shows that #5070, which was meant to fix #5069, introduces this code change at line 610:
- 'driver' => $url->scheme == 'mysqli' ? 'mysql' : $url->scheme,
+ 'driver' => $url->scheme,
Thanks for the research. And I'm sorry for the breakage ... The mysqli protocol isnt exactly deprecated. In that issue you linked to, the author is developing a drush driver for it. So we'll have to say something different in our error message.
Is your feature request related to a problem? Please describe.
Until 11.0.5, using mysqli:// in the --db-url paramter of drush si always works, however starting 11.0.6 it gives a hard-to-understand error message.
For example:
The above results in:
Describe the solution you'd like
Instead of the error message above, perhaps it would be better to say something like:
Describe alternatives you've considered
The following works (mysql instead of mysqli):
Additional context
The current error message can be confusing and I found the problem after a few hours of debugging.