IT TIP

mysql은 내부 또는 외부 명령, 작동 가능한 프로그램 또는 배치로 인식되지 않습니다.

itqueen 2020. 11. 30. 20:30
반응형

mysql은 내부 또는 외부 명령, 작동 가능한 프로그램 또는 배치로 인식되지 않습니다.


MySQL 경로를 설정했지만 여전히 동일한 오류가 발생합니다. 내가 올바른 것을 따랐는지 여부를 알려주십시오.

MySQL 위치는 다음과 같습니다. C:\Program Files\MySQL\MySQL Server 5.0\bin

Windows에서 시스템 변수는 경로를 다음과 같이 설정했습니다.

  • 변수 이름 : MYSQL_HOME
  • 변수 값 : C:\Program Files\MySQL\MySQL Server 5.0\bin

PATH 설정의 경우 :

  • 변수 이름 : PATH
  • 변수 값 : .;%JAVA_HOME%\bin;%MYSQL_HOME%\bin...

올바른 경로가 아닌 경우 올바른 경로와 설정을 알려주십시오.


MYSQL_HOME 변수 값 : C : \ Program Files \ MySQL \ MySQL Server 5.0 \ bin % MYSQL_HOME % \ bin

문제가 보이십니까? 이것은 경로로 해결됩니다.C:\Program Files\MySQL\MySQL Server 5.0\bin\bin


명령 프롬프트를 입력하기 만하면됩니다.

set path=%PATH%;D:\xampp\mysql\bin;

여기 내 경로는 D에서 시작되었으므로 D :를 사용했습니다. C : 또는 E를 사용할 수 있습니다.

여기에 이미지 설명 입력


MYSQL_HOME :

C:\Program Files\MySQL\MySQL Server 5.0

통로:

%MYSQL_HOME%\bin;

여기에 이미지 설명 입력여기서 내가 내 PC에서 수행하는 작업 G에서 일반적으로 사용하는 모든 소프트웨어를 설치합니다. G : partian not C : 내 운영 체제가 떨어질 경우 (승리 10), 다시 설치할 필요가없고 시간을 잃은 다음 Windows 작동 방식 업데이트 새로운 프로그램이나 소프트웨어를 설치하면 자동으로 PATH,

그래서

여기에서 이와 같이 PATH를 업데이트해야합니다! 내가 일반적으로 사용하는 모든 소프트웨어 1- Programe Files라는 폴더를 만들었습니다. 2-이 폴더에 모든 프로그램 데이터를 설치합니다. 3- 그런 다음 PATH로 이동하여 추가합니다. 잊지 마세요.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;G:\HashiCorp\Vagrant\bin;G:\xampp\php;G:\xampp\mysql\bin;G:\Program Files (x86)\heroku\bin;G:\Program Files (x86)\Git\bin;G:\Program Files (x86)\composer;G:\Program Files (x86)\nodejs;G:\Program Files (x86)\Sublime Text 3;G:\Program Files (x86)\Microsoft VS Code\bin;G:\Program Files (x86)\cygwin64\bin

여기에 이미지 설명 입력


제 경우에는 단순한 간격의 경우로 밝혀졌습니다 .

마지막 뒤에 공백이 삽입되었습니다. 그리고 ""C : \ Program Files \ MySQL \ MySQL Server 5.7 "이전에이 아주 간단한 이유 때문에 내가 무엇을하더라도 MySql은 여전히 ​​인식되지 않았습니다.

Once i eliminated the spaces before and after path, it worked perfectly.

In retrospect, seems like a very obvious answer, but nobody's mentioned it anywhere.

Also, i'm new to this whole windows thing, so please excuse me if it sounds very simple.


In my case, I resolved it by adding this C:\xampp\mysql\bin path in system variables then restarted cmd.

Note: Click me if you don't know how to set the path and system variables.


I am using xampp. For me best option is to change environment variables. Environment variable changing window is shared by @Abu Bakr in this thread

I change the path value as C:\xampp\mysql\bin; and it is working nice

참고URL : https://stackoverflow.com/questions/5920136/mysql-is-not-recognised-as-an-internal-or-external-command-operable-program-or-b

반응형