Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




JDBC Driver Licensing And Distribution


We are developing a Report Generator that works with a number of databases.
In order to add support for MySQL, I need to understand the implications of
using the JDBC driver, and the effect it will have on the closed-source
application using it.

The question is: does the application making call on the GPLed JDBC driver
come under GPL? The driver itself is not going to be extended/reworked in
any way, but used "as is".

A related question: can the driver be freely distributed (bundled) with a
commercial application?

I never worked with MySQL, and hope that someone could shed some light on
this issue.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
JDBC Error - Javax.servlet.ServletException: Com.mysql.jdbc.driver
I get the following error when trying access my MySQL database from a jsp page.

I have copied the proper jar into the WEB-INF/lib and the /ext path of my CLASSPATH.

Am I misisng something?

+++++++++++++++++++++++++++++++++++++++++++++

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: com.mysql.jdbc.driver
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.ja va:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcesso r.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.ClassNotFoundException: com.mysql.jdbc.driver
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1352)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1198)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
com.mullen.cac.struts.action.TestDB.execute(TestDB.java:30)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcesso r.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

Mysql Jdbc Driver Problem
I am trying to connect to mysql database using connector/J jdbc driver
this is my code

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import java.util.*;

class JdbcTest1 {

public static void main(String[] args) {
// Connection conn = null;
// Statement st = null;
//R........................

View Creation And Jdbc Driver
Does someone know if it is possible to create a view on a table with the 4.0.18 mysql version ? And does someone know which Jdbc driver to use with the 4.0.18 mysql version ?

Licensing
We are reviewing MYSQL for enterprise use and we have some licensing queries. We have sent several requests and the UK phone line is dead. Is MYSQL still in business?

Licensing Question
I am considering using embedded mysql as a part of my application. I
would like to distribute mysql to my customers which means I need to
buy a commercial license for each of my customers.

Is it possible to buy a single license for unlimitted number of
distributions? Is there some other kind of partnership or license
solutions?

Licensing Question
I am considering using embedded mysql as a part of my application. I
would like to distribute mysql to my customers which means I need to
buy a commercial license for each of my customers.

Is it possible to buy a single license for unlimitted number of
distributions? Is there some other kind of partnership or license
solutions?

MySql Licensing
I was pushed into moving some of my companie's databases to it under
the impression that it was 'free' as in free beer and free speech, as
long as I didn't embed their engine into some application of mine.
So great I though, I don't want to 'embed' anything anywhere, I don't
even care about looking or modifying their source code, I just want to
get rid of those pesky MsSql machines, that only server web pages all
day long.And it sounds an awful lot like, if you ever decide to run a website
of mysql and say, php, you sure need a license!!! So technically I
must be breaking the law now, and in those days of BSA inspections I
can't afford it.

Mysql Licensing Issues
for an internal LAN setup in our company, would i still need a license for it?

Age Distribution
I'm still using the older version of mysql 3.32 and I have a table,
which stores information about people, like their birthdate as a date
and their gender a smallint, which can be 0 meaning male or 1 meaning
female.I need one select, which will return the percentage of males and
females and then I need a select, which will tell me how many people
are withing their teens, 20ths, 30ths and so on.
Is that even possible without subselects? And how do I get the total
number of rows in a table, disregarding any restrictions in the where
and having clauses?

Frequency Distribution
I've really been banging my head on this one. I need a way to create a frequency distribution of a range of values from a single table. The table is a list of individuals, with a column for height, in decimal inches. I want to get a frequency distribution of a range of heights, like this...

60-62in 4
62-64in 8
64-68in 16
68-70in 12

Can anyone think of a way to do this? I've managed to do this with simple categorical variables before, but not with ranges of values. Ideally, I'd like to put the width of the range (2 inches) into the query, and have it return the necessary number of ranges and their frequencies, but I'd be happy to hard code them if necessary.

MySQL Distribution With Applications
Here's a question that I hope a number of people have resolved.

I am just about to start writing an application using MySQL and I want to know how I distribute the application.

Do I have to distribute a copy of MySQL with the application?

How do I ensure that the database can be found by the application on the new machine?

How do I get around firewalls? (I have Norton Personal Firewall and whenever I have an Internet connection made it flags up a recommended block for the DNS connection to the database).
(Please note I have duplicated this in the .Net section)

Using MySQL For File Distribution
I am wondering if it is possible to use MySQL for file distribution? EX: Using a web page, logon and then depending on user rights, display links for downloading files.

Choosing A Linux Distribution
I'm building up a mysql server to run our lab's internal data base, and was wondering how to go about choosing a linux distribution. Anyone have any advice as what to take into consideration, or have any specific advice? Also, is there any big disadvantage to just running the server on an XP box? The server itself will run on an AMD 64 processor.

Server Distribution Not Working
I am not able to get MYSQL running on Suse Linux Enterprise Server.

I tried stopping with the command mysqld and it reported, "Shtudown
Complete." Then when I tried to restart it with the command, "mysqld
–user=root" I get the response "mysql.host" doesn't exist. If I try
"mysqld – user=mysql", I get numerous errors.

I installed Suse Linux Enterprise Server 8 from CDROM and included all
options. I saw the MYSQL is part of the distribution so I assumed it
was set up properly. Apparently, that is not the case. I tried to
uninstall just the MYSQL and downloaded the MYSQL from the MYSQL web
site and tried to reinstall it according to the documentation but
found the SUSE Linux uninstall did not uninstall everything because I
kept getting error messages about conflicts between the MYSQL version
leftover stuff from the SUSE distribution and the newer version I
donwloded from the MYSQL site. I tried to manually delete everyting I
could but to no avail.

I gave up and reinstalled the whole SUSE Linux distribution. The very
first thing I did after the installation was complete was to try to
issue a mysql command as root and got the following:
"ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)"

Obviously, something is not quite right on my SUSE Linux distribution.

MySQL Installation And Distribution With Excel
I have just had the joys of installing MySQL (Windows binary) and am slowly getting my head around the admin functions.

My database learning curve has been based wholly upon MS Access, so I'm very excited about the potential improvement in performance that MySQL might bring.  Current versions of a particular piece of analysis for one of my clients take more than a minute to process in SPSS and well over 10 minutes in MS Access!

My question is more of a request for some reassurance; I'm considering creating this analysis as part of an application for one of my clients using Excel/VBA, though using a (hopefully invisible) MySQL application in the background for the hard-core data crunching.

Can I be reassured that it will be easy to distribute, install and configure MySQL in a way that requires no intervention from a generally non-IT-literate client? Are there any good articles which may point me in the right direction to swot up on the methods needed?

Create Distribution List From Table
I'm currently managing a site with information from our members such as
phonenumbers and emailaddresses, stored in a table. I would like to retrieve
the emailaddresses from the table and create a distribution list from it.
Right now I store the addresses twice, first in the mysql-table, and second
in mailman. I would like to circumvent the second.

MySQL Binary Or Source Distribution
I'm interested in which one is better for performance issues? The
binary distribution or a self compiled one?

MySQL Binary Or Source Distribution
I'm interested in which one is better for performance issues? The
binary distribution or a self compiled one?

About JDBC
Well i work with intellution´s Proficy line of products and my clientes are using various database manager systems, now MySQL is very popular and i found a lot of clients using it, for progrmas like iFIX there is no problem we just use MyODBC and it is like a walk in the park, but trying to connect it with JDBC to other program (to be exact Proficy portal wich is made totally in Java) at least for me has been impossible.

would anyone please tell me how to connect, install and manage the .jar files under Windows XP? what step am i missing? where do i have to put install or copy this files? is there an application i am not using?

JDBC
I' m using the linux driver libmyodbc3-3-51.06.so, for connecting to a mysql database.
I set url to String url= "jdbc:odbc:mydsn;useUnicode=true&characterEncoding=ISO8859-1";
However I cannot get accented characters in textfields or textareas.

Connecting With JDBC
I am using Hibernate and mySQL in my java application, and I had a hopefully very simple question. When I use JDBC to connect to mySQL over a remote network, is the password sent in clear text? If this is true by default, is there any way to change it? I do not want to move on to using an SSL connection for all of my queries due to the 35-50% performance penalty reported by the mySQL website. Ideally, we would like to authenticate without sending the password in clear text, but we are not concerned with someone sniffing our data once the authentication has taken place.

JDBC And X509
Connecting to mysql using a secure connection is not a problem and I've
configured it within a minute but now I've created a user which needs to
connect to the server using "REQUIRE X509" and I can't find a solution
to this problem.

JDBC To MySQL
I wrote a Java program to connect to MySQL using JDBC ...and it works fine...it connects and it does what is supposed to do.....however when I use the same program to connect to another MySQL server (in another machine) then I get an exception: "Server Configuration Denies access to data source" ....any ideas?

MySQL & JDBC
We currently have mySQL version 4.1.21 on our server. Does a version of JDBC come bundled with mySQL? If so what version is it?

JDBC To MySQL
I wrote a Java program to connect to MySQL using
JDBC ...and it works fine...it connects and it does what is supposed
to do.....however when I use the same program to connect to another
MySQL server (in another machine) then I get an exception: "Server
Configuration Denies access to data source" ....any ideas???

Classpath For JDBC
Do I need to set a classpath to get a connection between a java program and a database?

If I have to set a classpath in the command prompt in Windows - what must this classpath direct to - the .exe file where mysql is installed on my system?

Comment With JDBC
I'm just experiencing this new database, it's great. I have one question. Is it possible to get the column comment (set by the insert command) with JDBC somewhere in the metadefinitions? ... that would be great because I want to make a generator and could use this for several settings.

JDBC And MySQL
I want to create a Java-Applet, which communicates with a MySQL-Server.

My question:
Is it possible to use a Java-Applet without installing a Driver on the client?
What do I need?

Setting The First Row In JDBC
Consider a table with 100 entries in it. Say, I execute the following query from a JAVA application using JDBC: -

SELECT * FROM foo_table LIMIT 10 ORDER BY start_date DESC;

Due to 'LIMIT 10 ORDER BY start_date DESC' it will return me top 10 results.

How can I retrieve the next 10 in some later query, totally independent of any current query? I wish to do something like the Hibernate function Query.setFirstResult(int index); but using JDBC.

Mysal / Jdbc
why this code leads to SQLException? with SELECT * from FUNDS all is well.

SELECT FUNDS.ISIN, NAME, COUNTRY_NAME, CURRENCY_ID, UL_1.LOGIN AS CLOGIN,
UL_2.LOGIN AS MLOGIN
FROM FUNDS, COUNTRIES, USER_LIST ALIAS UL_1, USER_LIST ALIAS UL_2
WHERE FUNDS.COUNTRY_ID = COUNTRIES.COUNTRY_ID
AND
CREATOR = UL_1.USER_ID
AND MODIFICATOR = UL_2.USER_ID
UNION
SELECT FUNDS.ISIN, NAME, COUNTRY_NAME, CURRENCY_ID, UL_1.LOGIN AS CLOGIN,
NULL
FROM FUNDS, COUNTRIES, USER_LIST ALIAS UL_1, USER_LIST ALIAS UL_2
WHERE FUNDS.COUNTRY_ID = COUNTRIES.COUNTRY_ID
AND
CREATOR = UL_1.USER_ID
AND MODIFICATOR IS NULL
ORDER BY ISIN;

Map JDBC Types
I'm setting up a server-application on a tomcat that is developed for SQL Server or Oracle but I got the thankless task of trying to set up the application on a MySQL instead.
One part of setting up this is to port some properties-files and I cannot get the hang of it.
Is there some friendly soul out there that could give me a hand?
I've included the content of properties-files below for SQL Server and I believe you'll get how it should be ported to MySQL. Most part of the content is the same in all three files but I included them all anyway

MS SQL Driver
I have mysql installed on a linux box along with apache, tomcat.  I need to make a connection to a server with windows NT running MS SQL 2000, does anybody recommend a good odbc:jdbc driver to install on the linux system?

Connection Issue - Jdbc And Xml
I am using mysql 5 and need to connect to it from an application.  I am running tomcat 4.1, mysql 5 and jave sdk 6 on Windows server 2000.  I have the following placed in an xml file, but the error log tells me that it is unable to connect can anyone assist me?

I have asked the same on a tomcat site.....

Jdbc / Odbc Connection
I am running Suse 10.1 and i have MySQL working fine but Im having problems with connecting my Java Application with my Database. I got the recent J Connector drivers but i keep getting the exception about it not being able to find my device driver. The only other thing I was un-able to figre is where is "%Java_home% /jre/lib" is that only for windows?

Configuring MySQL For JDBC ?
I'm having a MySQL DB running on one machine and a Java-Tool which accesses this DB via JDBC. With this tool, I can add a second DB data source in form of a mySQL DB and I've installed one more MySQL DB on a third machine, which runs perfect, but the access from the java-tool via JDBC-connection doesn't work.

Command line "mysql" tool work perfect from the machine where the java tool is running. The company which coded the java-tool told me that I have to install a package for the mysql db which enables jdbc. Is that right and what do I have to configure ?

Com.mysql.jdbc.MysqlDataTruncation:
I just upgraded to MySQL to 4.1.9 and JDBC
mysql-connector-java-3.1.6-bin.jar and now getting the following Exception:

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data truncated for
column 'usaCard' at row 1

What causes this exception?

I've set jdbcCompliantTruncation=false for the time being but would like to
understand what causes the Exception.

Connecting Between JDBC And ODBC
I have a linux machine set up with MySQL, and I would like to connec to the database using Java I have already connected to the database using the [mysql-connector-java-3.0.9-stable-bin.jar] but I would like to connect using ODBC. Code:

Jdbc Over SSL, SAP Business Connector 4.6
I have set up a connection between SAP Business Connector 4.6 and MYSQL. I'm currently using jdbc driver com.mysql.jdbc.Driver (mysql-connector-java-3.0.16-ga-bin.jar).

Using DB URL jdbc:mysql://<ip>/<database> the connection is working fine.

So far so good.

Now my problem:
I need to set up a SSL connection but in MySQL Connector/J Documentation is stated:
'For SSL Support to work, you must have the following:

A JDK that includes JSSE (Java Secure Sockets Extension), like JDK-1.4.1 or newer. SSL does not currently work with a JDK that you can add JSSE to, like JDK-1.2.x or JDK-1.3.x due to the following JSSE bug:

http://developer.java.sun.com/developer/bugParade/bugs/4273544.html'

My SAP business connector is running under jdk 1.3.0

How do I get SSL running?

[java] Jdbc, More Than One Sql Command
I use Connector/J ver. 3.0 (downloaded from mysql.com).

Does anybody know why I cannot execute something like that in my Java
program:

stat.execute("CREATE TABELE a(b int);INSERT INTO a(b) VALUES(1);");
???

something like this works fine:
stat.execute("CREATE TABELE a(b int);");
stat.execute("INSERT INTO a(b) VALUES(1);");

i was trying to change the string:
"CREATE TABELE a(b int);
INSERT INTO a(b) VALUES(1);"
"CREATE TABELE a(b int); INSERT INTO a(b) VALUES(1);"
and nothing works.

Can anyone tell me why this jdbc driver cannot take this??? If I put the
string:
"CREATE TABELE a(b int);INSERT INTO a(b) VALUES(1);"
into mysql console everthing works fine....

I don't get it. I was trying to run it in pg, and evertyhing worked fine.

JDBC Rowcount() Too Much Slow
Does MySql 5.0 go over all records of a InnoDB data base when I ask for RowCount() . It's excessively slow with very much records.

How To Use Jdbc To Connect To Database?
I have installed MySQL4.1.9 and installed JDBC driver connect J/3.1 I installed MySQL in C:MySQL and I have copied the "mysql-connector-java-3.1.6-bin.jar" file into <java home>jrelibext , <java runtime environment home>libext and <Tomcat Home> commonlib.

I started up MySQL from the commandline client and created a 'books ' database using "CREATE DATABASE books;". I have also added the statement: GRANT ALL PRIVILEGES ON *.* TO '<user>' IDENTIFIED BY '<password>' WITH GRANT OPTION;

The problem is when I try to use java to access the database via jdbc. I typed the code:
Connection con = null;
Class.forName("org.gjt.mm.mysql.Drive").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/books ?user=<user>&password=<password>");

It compiles correctly but when i execute the code,it displays: "SQLException: java.sql.SQLException: Incorrect database name 'books ' "

I changed the statement to:
con = DriverManager.getConnection("jdbc:mysql:books ?user=<user>&password=<password>");
but when executing,the message now is: SQLException: java.sql.SQLException: No suitable driver

I have tried checked the jdbc manuel online but the con statement given is about the same. It seems that somehow jdbc cannot find the database and the driver is not recognised also.

Can't Establish JDBC Connection
I'm developing a small java web-app for a client using JSP, Servlets and a MySQL db. The app-server and database are leased from a third party vendor, so all my work is done remotely. I've uploaded my app and am trying to establish a connection but can't. The exception is this:

Access denied for user: 'username@localhost.localdomain' (Using password: YES)

and occurs at line:


Code:

Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/database","username","pwd");

JDBC And Mysql Errors
I developed the java code to create data object's that is created from the class mpcData, the main database connectivity is mpcConnect now when i initially developed the code it compiled error free, soon as i added the classpath to the directory containing the Mysql drivers ( "c:jdbcDriver") in my windows system environment i'm getting error's in the compiling that i cannot find the data object mpcData anymore.

Case Sensitive JDBC
I have an aplication JSP-JAVA-SQL Server. And I migrated to MySQL, but in MySQL the SQL its all case sensitive so I would have to change the SQL code in JAVA (that would be crazy, even with find-replace).

The obvious solution is to change the charset and/or collation but I can't find the way to do it.There a way of when connecting to the DB in JAVA to say through the JDBC that all transactions will be Case-Insensative?

JDBC Number Rows
After you have done a .executeQuery() and returned that to a ResultSet how do you get the number of rows returned?
I have tried using getFetchSize() but that does not help me.

Install Jdbc Drivers
I want to interact with MYSQL db using java........for that i need jdbc drivers.somebody please send me the links and installation steps.

IPS Driver Error
I am getting two errors on a forum. The first is an IPS Driver Error:

IPS Driver Error
There appears to be an error with the database.
You can try to refresh the page by clicking here

the second is this (in PHPMyAdmin):

MySql Driver?


I would like to know what kind of problem could trigger this error:

Quote:

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in C:wampwww estlibraryendDbAdapterPdoAbstract.php:79

I am using the Zend Framework and I am simply trying to insert data in a table.

How could I install a mysql driver? phpmyadmin works fine.

MyODBC Driver
Trying to use MySql 5.0.27 with Dreamweaver MX & PHP & Apache

In "Inside Dreamweaver MX" the authors state 'If you're using MySQL as your DBMS, you need to use the MyODBC driver to create your DSN's See Appendix C for full coverage of obtaining & setting up MyODBC' Unfortunately Appendix C does not mention MyODBC although is does mention MySQL.

They are referring to an earlier version of MySQL (3.23) and show setting up the DSN in windows.

My problem is I cannot see the MyODBC driver. Is this a separate download?


Copyright © 2005-08 www.BigResource.com, All rights reserved