我希望使用PowerShell ISE选项卡来连接mysql客户端和tun sql语句,但是一旦我使用以下命令连接到客户端-
>mysql.exe --defaults-file=<abc.xnf> --datadir=<xyz> mysql提示符没有出现,相反,控制台表现为一个持续运行的进程。有人知道如何获得mysql提示符吗?
发布于 2014-12-29 14:51:48
不幸的是,ISE不是一个完整的控制台主机,也没有正确地处理交互式控制台应用程序。如果您尝试运行一个内置的交互式控制台应用程序(如netsh.exe ),您将得到如下错误:
Cannot start "netsh". Interactive console applications are not supported.
To run the application, use the Start-Process cmdlet or use "Start PowerShell.exe" from the File menu.
To view/modify the list of blocked console applications, use $psUnsupportedConsoleApplications, or consult online help.其他命令(如mySQL )将无限期挂起,因为ISE无法正确处理应用程序的用户输入。您可以在这里阅读更多有关此限制的内容:PowerShell团队博客.
https://serverfault.com/questions/654806
复制相似问题