Hi Sharriff,
I looked at it a while ago. The only documentation of the protocol is
its open source implementation in Java - other languages connect to
MySQL through its C client library, but Java and REBOL can't be linked
against the library so they must communicate via TCP at port 3306.
IMHO it would not be too hard to convert the relevant part of Java JDBC
driver to REBOL. Unfortunately, the MySQL protocol is binary and not
text like most Internet protocols, so it's not that easy to parse in
REBOL. I wanted to try it myself but unfortunately I don't have time
for it. The MM Mysql JDBC driver with source is at
http://www.worldserver.com/mm.mysql/
so it would be great if anyone tried it. BTW just reading Java source
and understanding what's going on is easier than writing programs
in Java, so IMHO one doesn't have to be a Java expert to convert the
driver to REBOL (and no, I'm not a Java expert either :-).
Regards,
Michal Kracik
Sharriff Aina wrote:
>
> Hello Frank!
>
> could you send me the java source too? I would greatly appreciate it
> my email address: [EMAIL PROTECTED]
>
> Any chance of skipping the Java part and just connectiong over TCP/IP?
> Mysql can be accessed somehow at port 3306, but I haveßnt found any useful
> documentation on this, not even at the mysql site.
>
> Regards
>
> Sharriff
>
>
>
> >I've written a java server, which provides the connection to the database
> >for REBOL. The package is called "dbridge" and it has two parts:
>
> >- dbridge.r
> >Provides the dridge:// protocol. You can connect to a database using
> >something like:
> > open dbridge://user:passe/server/database
>
> >- dbridge.class
> >The Java side uses jdbc-drivers to connect to the database. It is works at
> >least with postgres and mysql. I am using both.
>
> >If you want this package, send me an email, but I don't have the time to
> ><give any support for it.
>
> >CU,
> >Frank
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.