我想使用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