“MySQL"未被识别为内部命令(用于 Visual Studio 的 Apache Cordova) [英] 'MySQL' is not recognized as an internal command (Apache Cordova for visual studio)

查看:47
本文介绍了“MySQL"未被识别为内部命令(用于 Visual Studio 的 Apache Cordova)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Cordova Apache 工具在 Visual Studio 中构建空白应用程序时,出现此错误:

When i'm building an Blank App in visual studio with Cordova Apache Tools, i got this error:

'MySQL' 未被识别为内部命令.

'MySQL' is not recognized as an internal command.

------ Build started: Project: FirstAppInCordova, Configuration: Debug Android ------

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling. 
GeneratedJavascript=

C:\Users\Douglas\documents\visual studio 2013\Projects\FirstAppInCordova\FirstAppInCordova>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : 'MySQL' n�o � reconhecido como um comando interno

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : ou externo, um programa oper�vel ou um arquivo em lotes.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : 'MySQL' n�o � reconhecido como um comando interno

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : ou externo, um programa oper�vel ou um arquivo em lotes.

 Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.

Android Emulator 正在 AVD Control 上运行.

Android Emulator is running on AVD Control.

更新我通过在系统变量中添加mysql服务器的bin文件夹来修复它,现在输出日志只是返回:

UPDATE I fixed it by add in the system variable the bin folder of mysql server, now the output log just return:

------ Build started: Project: FirstAppInCordova, Configuration: Debug Android ------

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.

  GeneratedJavascript=
  C:\Users\Douglas\documents\visual studio 2013\Projects\FirstAppInCordova\FirstAppInCordova>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 

  Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.

  ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\1DKIFLHP.GW1\packages\vs-mda

推荐答案

当您已经在盒子上安装了 mySql 时,就会出现这种情况.

This looks like it occurs when you already have mySql installed on the box.

我通过在路径中的以下 MySql 项目周围添加引号来修复.更改路径后,请务必重新启动 VS.

I fixed by adding quotes around the following MySql items in the path. Be sure and restart VS once you've made the path changes.

...;"C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5"\;"C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\";...

<小时>

我还在 mySql 中添加了一个名为 ODBC 的用户,密码为空……这并不明智,但这是我的个人开发箱.


I also added a user with the name of ODBC to mySql with a blank password... prolly not wise, but this is my personal dev box.

这篇关于“MySQL"未被识别为内部命令(用于 Visual Studio 的 Apache Cordova)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆