mysql : The term ‘mysql’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
在mysql前面加
.\
在window10上安装MySQL,意外地发现不能使用命令,命令没问题,如下图:

问题如下下图所示:

网上找没找到,接着看到了命令(mysqld.exe,可执行程序)是没问题的,于是,我想到了.\,结果欧克。

在Windows 10中安装MySQL后,遇到命令行无法识别'mysql'的问题。通过在命令前添加'.'和'',成功解决了这个问题。这表明可能需要指定MySQL可执行文件的完整路径来运行。
1463

被折叠的 条评论
为什么被折叠?



