Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Unable to find JDBC Driver error on Linux server
Replies: 3   Last Post: Apr 23, 2014 9:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Hariprasad

Posts: 27
Registered: 5/27/13
Unable to find JDBC Driver error on Linux server
Posted: May 27, 2013 5:15 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, I have to run a script which basically connects to MySQL database on Linux server and pulls data from a table. I'm trying this on Linux server with MATLAB Installed on the server as well. I have installed MySQL. I used the below function:

conn = database('Database','username','password','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/database-name');

and

conn = database('Database','username','password','Vendor','MySQL','Server','Server name');

but when i run the above codes, i get this error :

conn =

Instance: 'database'
UserName: 'username'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: 'Unable to find JDBC driver.'
Handle: 0
TimeOut: 0
AutoCommit: 'off'
Type: 'Database Object'

i have installed mysql-connector-java-5.1.16.jar

please let me know where I'm going wrong.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.