This configuration is working properly on xampp local install (drush version)
Drupal version : 9.5.1
DB driver : mysql
DB hostname : localhost
DB port : 3306
Database : Connected
Drupal bootstrap : Successful
PHP binary : C:/xampp/php/php.exe
PHP config : C:/xampp/php/php.ini
PHP OS : WINNT
PHP version : 7.4.27
Drush script : C:/xampp/htdocs/mysite/vendor/drush/drush/drush
Drush version : 11.4.0
But on webserver, any drush command I type (for example cr) returns a "Command "cr" is not defined." Drush was installed via composer global require drush/drush (also exists as vendor/bin/drush in website root with same behavior)
drush list returns :
Available commands:
help Display help for a command
list List commands
I think I have pretty much the same config on another webserver with no such problem.
Any ideas on that ?