我想使用Matlab建立一个mySql连接,我已经阅读了我几个教程,但不幸的是我无法得到他们的工作。我曾试图编译源(的.cpp),但我得到了以下错误:Matlab R2010b设置MySql
Error: Could not detect a compiler on local system
which can compile the specified input file(s)
C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: No compiler options file could be found to compile source code. Please run "mex -setup" to rectify.
所以我我输入“MEX -setup”
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[0] None
Compiler:
但没有编译器。
任何人都可以帮助我,我怎样才能使matlab和MySQL之间的连接,我使用Windows 7 64位和Matlab 2010b。
我已经安装了wampserver。
惠特这些我ge t出现以下错误:???未定义的函数或方法'数据库'为'char'类型的输入参数。 错误==> connectTest在12 康恩=数据库(数据库名,用户名,密码,jdbcDriver,jdbcString); ???未定义的函数或方法'数据库'为'char'类型的输入参数。 – 2011-04-20 09:09:03
@iUngi:对不起,它需要可从Mathworks公司数据库工具箱。我会更新答案。也许有另一种方法只使用java,我会看看。 – yuk 2011-04-20 13:58:05
最后我在早上找到了答案,但这个解决方案与您在更新中写的相同。所以,如果有人还在寻找Matlab和MySQL的位置之间的连接解决方案:请从拉链:HTTP://sourceforge.net/projects/mym/和使用MEX编译。如果有人在windows 64bit下编译有问题,我可以帮忙。 – 2011-04-20 14:28:58