source

'<' 연산자가 예약된 PowerShell 오류입니다.

ittop 2023. 7. 26. 22:25
반응형

'<' 연산자가 예약된 PowerShell 오류입니다.

사용하려고 합니다.mysql -u root -p Tutorials < tut_backup.sqlMySQL 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

반응형