help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 3.6.2 - Connection to mysql


From: PhilipNienhuis
Subject: Re: Octave 3.6.2 - Connection to mysql
Date: Sat, 18 May 2013 15:21:46 -0700 (PDT)

Sorry for overlooking your post. I you haven't got any further, read on:


pascalus89 wrote
> Hello
> 
> I have install octave Octave3.6.2_gcc4.6.2_20120609 in windows 7.
> 
> I would like to connect octave to mysql database. I use mysql from my wamp
> server.
> 
> I search how to connect to mysql but it is not clear.
> 
> I see that there is a package database-2.1.1.tar.gz. But il seems that it
> doesn't work for mysql.

No currently it works only for postgres


> Is someone could help me ?

Not directly.

But what you can do is use JDBC and the Octave Java package. 
You'll have to write the required scripts yourself but there are several
very usable tutorials out there. E.g.,
http://www.vogella.com/articles/MySQLJava/article.html, or
http://www.tutorialspoint.com/jdbc/, or Oracle's
http://docs.oracle.com/javase/tutorial/jdbc/basics/

Converting the Java stuff into Octave-Java .m file shouldn't be very hard.
Because in Octave you can enter Java commands one by one interactively, you
can proceed step by step.

FYI: I have looked at JDBC in the past and rapidly got something very basic
to work in Octave's command window but I didn't script it.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Octave-3-6-2-Connection-to-mysql-tp4651141p4653111.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]