The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 28
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');


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.