无法将术语“ 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 (将#修改为@)