微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法将术语“ mysql -uroot -p”识别为cmdlet,函数,脚本文件或可执行程序的名称

如何解决无法将术语“ mysql -uroot -p”识别为cmdlet,函数,脚本文件或可执行程序的名称

我一直试图在 powershell 中将“ MysqL.exe -uroot -p”添加别名,但是每次我保存文件并启动powershell时,都会抛出提示错误
已经在我的环境路径中包含了MysqL,它可以正常运行,
只是我不想每次登录都输入长命令。

MysqLRoot: The term 'MysqL.exe -uroot -p' is not recognized as a name of a cmdlet,function,script file,or executable program.
Check the spelling of the name,or if a path was included,verify that the path is correct and try again.
到目前为止,我在Powershell配置文件中尝试过的事情

  • 新别名MysqLRoot“ MysqL.exe -uroot -p”
  • 新别名MysqLRoot MysqL.exe -uroot -p [基本上没有引号]
  • 新别名MysqLRoot“ MysqL -uroot -p”
  • 从命令行复制了“ MysqL -uroot -p”,效果很好。

请告诉我我在做错什么,绝对不是,所以请对我轻松一点

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。