Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'MySQL' is not recognized as an internal or external command, #17907

Closed
bhavincb opened this issue May 25, 2018 · 17 comments
Closed

'MySQL' is not recognized as an internal or external command, #17907

bhavincb opened this issue May 25, 2018 · 17 comments
Labels
t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@bhavincb
Copy link

Steps to Reproduce

running flutter or flutter doctor gives below error

Logs

'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.

flutter doctor -v also gives same log as above. i'm stuck at here.

@zoechi
Copy link
Contributor

zoechi commented May 25, 2018

That's really weird. Flutter doesn't use MySql in any way.

@bhavincb
Copy link
Author

bhavincb commented May 26, 2018 via email

@bhavincb
Copy link
Author

hii @zoechi ,
any idea on this? i'm stuck at starting flutter.

@zoechi
Copy link
Contributor

zoechi commented May 27, 2018

No ideas. I can't imagine this being caused by Flutter.

@bhavincb
Copy link
Author

hii @zoechi ,
removing C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\; and C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\; from system variable Path solved issue.
but still doesn't understand why this error was raising.

@zoechi
Copy link
Contributor

zoechi commented May 28, 2018

Sounds like these MySQL directories contain a flutter command.

@fmatosqg
Copy link
Contributor

fmatosqg commented May 28, 2018

Having & in the path in a linux based system sounds quite dangerous. Your OS is clearly not linux but there may be assumptions inside flutter tools that get confused by that.

If you're willing to do an experiment, add something in the fashion of C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & ABC123; and see if you get an error for ABC123 not found instead.

Can you post the whole output from flutter -v into a gist (http://gist.github.com/) and add the link here? Better if you can reproduce it with the ABC123 example. Also pls include echo %PATH% before running.

@bhavincb
Copy link
Author

hii @fmatosqg ,

adding C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & ABC123; does gives me below error.

'ABC123' is not recognized as an internal or external command,
operable program or batch file.
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.

you where right original issue was having & inside the path.
also issue only exist for flutter command. other commands like git and npm working perfectly fine.

here is gist as you asked: https://gist.github.com/bhavincb/af059afc27c814808b2e92d3a6aa910e

@DevLucem
Copy link

DevLucem commented Jun 9, 2018

Please check this : I managed to face the error and fix it with a different lib
https://stackoverflow.com/questions/50776550/flutter-mysql-is-not-recognized-as-an-internal-or-external-command

@Eng-MohamedGadala
Copy link

This solves the same problem for me.
Link StackOverflow #Lucem-Anb

Unfortunately, the Zip provided on flutter.io gave me a problem. To avoid this error, I had to use the GitHub repository following the following procedure.

Go to C:\ Drive and create a folder called flutter.
Go to that folder and start git bash
Type git clone -b beta https://github.com/flutter/flutter.git and enter
After its complete, add the path C:\flutter\flutter\bin in environment variables
Finally, start CMD and type flutter doctor and the error is disappeared

@zoechi zoechi added tool Affects the "flutter" command-line tool. See also t: labels. t: flutter doctor Problem related to the "flutter doctor" tool labels Jun 27, 2018
@DevLucem
Copy link

@Eng-MohamedGadala I appreciate your upvote

@zoechi
Copy link
Contributor

zoechi commented Oct 27, 2018

I assume this is solved.
Please add a comment if you think there is something that needs to be done by the Flutter team and I'll reopen.

@dawningtruth
Copy link

As per request from support. The file that you download from the Flutter site is: flutter_windows_v0.9.4-beta which for some strange reason seems to conflict with MySQL. I downloaded flutter_windows_v0.10.1-dev from the Flutter site and uninstalled MySQL (it was an old version from 2015). It is working now.

I suggest that the download file from the Flutter site is changed to a later Dev version.

@zoechi
Copy link
Contributor

zoechi commented Oct 29, 2018

@dawningtruth

Flutter doesn't contain any mention of mysql anywhere it it's codebase.
The issue has to be on your system setup.
Please add the output of flutter doctor -v and everything where mysql appears in your environment setting.
You should get the environment by executing

env

in a terminal window
You can also try

env | grep -i mysql

to get only the output where mysql appears.

@ma586
Copy link

ma586 commented Dec 9, 2018

Unfortunately, the Zip provided on flutter.io gave me a problem. To avoid this error, I had to use the GitHub repository following the following procedure.

Go to C:\ Drive and create a folder called flutter.
Go to that folder and start git bash
Type git clone -b beta https://github.com/flutter/flutter.git and enter
After its complete, add the path C:\flutter\flutter\bin in environment variables
Finally, start CMD and type flutter doctor and the error is disappeared

source: https://stackoverflow.com/questions/50776550/flutter-mysql-is-not-recognized-as-an-internal-or-external-command

@timsar2
Copy link

timsar2 commented Apr 24, 2019

Same Error after uninstall MySql: zip file downloaded from flutter site.
https://flutter.dev/docs/get-started/install/windows
flutter_windows_v1.2.1-stable.zip

'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.

as bhavincb said: #17907 (comment)
removing MySql from Environment Variable solve issue

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

8 participants