반응형
'<' 연산자가 예약된 PowerShell 오류입니다.
사용하려고 합니다.mysql -u root -p Tutorials < tut_backup.sql
MySQL DB의 테이블을 복원하기 위해 PowerShell을 사용하지만 이를 사용하면The '<' operator is reserved for future use.
오류입니다. 우회적인 방법이 있나요?
어때.
& cmd.exe /c "mysql -u root -p Tutorials < tut_backup.sql"
다음과 같이 내용을 파이프로 연결할 수 있습니다.
Get-Content tut_backup.sql | mysql -u root -p Tutorials
대신 사용해 보십시오.
mysql -u root -p
(prompts for password)
source tut_backup.sql
신용은 월크에게 돌아옵니다.
언급URL : https://stackoverflow.com/questions/15776495/operator-is-reserved-powershell-error
반응형
'source' 카테고리의 다른 글
jQuery AJAX vs.업데이트 패널 (0) | 2023.07.26 |
---|---|
mysql에서 '보기에서 표 만들기' 구문이 쉽습니까? (0) | 2023.07.26 |
다른 열에서 WHERE를 선택하는 테이블에 대한 최상의 인덱싱 기법 (0) | 2023.07.26 |
Android에서 화면 회전 방지 (0) | 2023.07.26 |
python에서 URL을 여는 방법 (0) | 2023.07.26 |