Thread Subject: MySQL JDBC

Subject: MySQL JDBC

From: Luca Cerone

Date: 24 Dec, 2007 12:31:12

Message: 1 of 1

Hi everybody,
I'm trying to connect Matlab (2007a) to a MySQL database,
using JDBC driver.
I downloaded the J connector from MySql Web Site.
I added the path of the .jar driver in the classpath.txt file.
I'm still not able to connect using JDBC driver (but I'm
able to connect using ODBC ones).
I use the following code line

conn =
database('unicredit','user','password','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/bank')

I get an error saying the driver can't be found.
How can I fix it??

Thank you all very much in advance.

I also wish you a Merry Christmas! (here in Italy is
Holiday.. if you don't celebrate it, consider it as a "Best
Wishes" ^_^).

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com