程序 'mysql.exe' 未能 运行: 指定的可执行文件不是有效的应用程序
Program 'mysql.exe' failed to run: The specified executable is not a valid application
我在 windows 10 中使用 mysql
命令有问题。我想将文件 test.sql
导入到 test
数据库。我在 Windows PowerShell
中使用此命令
.\mysql -u root -p test < test.sql
PS return 此内容有误
Program 'mysql.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1
char:1
+ .\mysql -u root -p
+ ~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ .\mysql -u root -p
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
我在 windows CMD 中试过(也管理)我收到这条消息 This app can't run in your PC
我还发现 mysql.exe
c/wamp64/bin/mysql/mysql5.7.11/bin
应用程序的大小很奇怪 0KB
。
正常吗?
有什么问题吗?
嗯 - 这不正常,应用程序的大小应该超过 0kb,具体取决于版本。我的猜测是 mysql 没有正确安装。也许防病毒软件在安装过程中阻止了它?
尝试重新安装 WAMP 包。此外 - 当您启动 WAMP - 以提升的权限执行此操作。
你的 windows 是 64 位的吗?另外 - 如果尽管关闭了防病毒软件甚至不存在,但重新安装软件包仍无法正常工作,请尝试下载并安装 32 位软件包。
我使用 this answer 安装了新版本的 mysql
它在 mysql
的新版本中有效
我在 windows 10 中使用 mysql
命令有问题。我想将文件 test.sql
导入到 test
数据库。我在 Windows PowerShell
.\mysql -u root -p test < test.sql
PS return 此内容有误
Program 'mysql.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1
char:1
+ .\mysql -u root -p
+ ~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ .\mysql -u root -p
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
我在 windows CMD 中试过(也管理)我收到这条消息 This app can't run in your PC
我还发现 mysql.exe
c/wamp64/bin/mysql/mysql5.7.11/bin
应用程序的大小很奇怪 0KB
。
正常吗?
有什么问题吗?
嗯 - 这不正常,应用程序的大小应该超过 0kb,具体取决于版本。我的猜测是 mysql 没有正确安装。也许防病毒软件在安装过程中阻止了它?
尝试重新安装 WAMP 包。此外 - 当您启动 WAMP - 以提升的权限执行此操作。
你的 windows 是 64 位的吗?另外 - 如果尽管关闭了防病毒软件甚至不存在,但重新安装软件包仍无法正常工作,请尝试下载并安装 32 位软件包。
我使用 this answer 安装了新版本的 mysql 它在 mysql
的新版本中有效