The Debian package of MySQL was first debianzed on 1997-04-12 by Christian
Schwarz <schwarz@debian.org> and ist maintained since 1999-04-20 by 
Christian Hammers <ch@debian.org>.

It can be downloaded from http://www.mysql.com/

Copyright:

There are quite a few different copyrights on the various parts of the
MySQL distribution and http://www.mysql.com/ sometimes does not say which
version is referred to :-(

Below is a snapshot of the licenses currently used, if you are interested,
please visit the http://www.mysql.com/ for the latest version!

The manual had to be separated as it is not free in the sense of the
Debian Free Software Guidelines (DFSG). 
In spite of the fact that it is available as mysql-doc*.deb package 
in our non-free archive and still actively maintained it is no longer
considered as formal part of the Debian distribution!

The Berkeley DB part has it's own license, it's at the bottom.

You can find the GPL and LGPL licences in /usr/share/common-licenses/.

-------------------------------------------------------------------------
http://dev.mysql.com/doc/mysql/en/Copyright.html as of 2004-08-06:

1.4.2 Copyrights and Licenses Used by MySQL

   MySQL AB owns the copyright to the MySQL source code, the MySQL logos
   and (registered) trademarks, and this manual. See section [45]1.3
   Overview of MySQL AB. Several different licenses are relevant to the
   MySQL distribution:
    1. All the MySQL-specific source in the server, the mysqlclient
       library and the client, as well as the GNU readline library, are
       covered by the GNU General Public License. See section [46]G GNU
       General Public License. The text of this license can be found as
       the file `COPYING' in MySQL distributions.
    2. The GNU getopt library is covered by the GNU Lesser General Public
       License. See [47]http://www.fsf.org/licenses/.
    3. Some parts of the source (the regexp library) are covered by a
       Berkeley-style copyright.
    4. Older versions of MySQL (3.22 and earlier) are subject to a
       stricter license
       ([48]http://www.mysql.com/products/licensing/mypl.html). See the
       documentation of the specific version for information.
    5. The MySQL Reference Manual is not distributed under a GPL-style
       license. Use of the manual is subject to the following terms:
          + Conversion to other formats is allowed, but the actual
            content may not be altered or edited in any way.
          + You may create a printed copy for your own personal use.
          + For all other uses, such as selling printed copies or using
            (parts of) the manual in another publication, prior written
            agreement from MySQL AB is required.
       Please send an email message to [49]docs@mysql.com for more
       information or if you are interested in doing a translation.

   For information about how the MySQL licenses work in practice, please
   refer to section [50]1.4.3 MySQL Licenses and section [51]1.4.4 MySQL
   AB Logos and Trademarks.

  45. http://dev.mysql.com/doc/mysql/en/What_is_MySQL_AB.html
  46. http://dev.mysql.com/doc/mysql/en/GPL_license.html
  47. http://www.fsf.org/licenses/
  48. http://www.mysql.com/products/licensing/mypl.html
  49. mailto:docs@mysql.com
  50. http://dev.mysql.com/doc/mysql/en/MySQL_licenses.html
  51.  http://dev.mysql.com/doc/mysql/en/MySQL_AB_Logos_and_Trademarks.html


1.4.3 MySQL Licenses

   The MySQL software is released under the GNU General Public License
   (GPL), which is probably the best known Open Source license. The
   formal terms of the GPL license can be found at
   [46]http://www.fsf.org/licenses/. See also
   [47]http://www.fsf.org/licenses/gpl-faq.html and
   [48]http://www.gnu.org/philosophy/enforcing-gpl.html.

   Our GPL licensing is supported by an optional license exception that
   enables many Free/Libre and Open Source Software (``FLOSS'')
   applications to include the GPL-licensed MySQL client libraries
   despite the fact that not all FLOSS licenses are compatible with the
   GPL. For details, see
   [49]http://www.mysql.com/products/licensing/foss-exception.html.

	...

  46. http://www.fsf.org/licenses/
  47. http://www.fsf.org/licenses/gpl-faq.html
  48. http://www.gnu.org/philosophy/enforcing-gpl.html
  49. http://www.mysql.com/products/licensing/foss-exception.html


   The MySQL AB Exception for Free/Libre and Open Source Software-only
   Applications Using MySQL Client Libraries (the "FLOSS Exception").


http://www.mysql.com/products/licensing/foss-exception.html as of 2004-08-06


Exception Intent

   We want specified Free/Libre and Open Source Software ("FLOSS")
   applications to be able to use specified GPL-licensed MySQL client
   libraries (the "Program") despite the fact that not all FLOSS licenses
   are compatible with version 2 of the GNU General Public License (the
   "GPL").

Legal Terms and Conditions

As a special exception to the terms and conditions of version 2.0 of the GPL:

You are free to distribute a Derivative Work that is formed entirely from
the Program and one or more works (each, a "FLOSS Work") licensed under one
or more of the licenses listed below in section 1, as long as:

   1. You obey the GPL in all respects for the Program and the Derivative
      Work, except for identifiable sections of the Derivative Work which 
      are not derived from the Program, and which can reasonably be considered
      independent and separate works in themselves,
   2. all identifiable sections of the Derivative Work which are not
      derived from the Program, and which can reasonably be considered
      independent and separate works in themselves,
	 1. are distributed subject to one of the FLOSS licenses listed
            below, and
	 2. the object code or executable form of those sections are
            accompanied by the complete corresponding machine-readable source
            code for those sections on the same medium and under the same FLOSS
            license as the corresponding object code or executable forms of those
            sections, and
         3. any works which are aggregated with the Program or with a Derivative
            Work on a volume of a storage or distribution medium in accordance with
            the GPL, can reasonably be considered independent and separate works in
            themselves which are not derivatives of either the Program, a Derivative
            Work or a FLOSS Work.

If the above conditions are not met, then the Program may only be copied,
modified, distributed or used under the terms and conditions of the GPL or
another valid licensing option from MySQL AB.

1. FLOSS License List

License name					Version(s)/Copyright Date
Academic Free License					2.0
Apache Software License					1.0/1.1/2.0
Apple Public Source License				2.0
Artistic license					From Perl 5.8.0
BSD license						"July 22 1999"
Common Public License					1.0
GNU Library or "Lesser" General Public License (LGPL)	2.0/2.1
Jabber Open Source License				1.0
MIT License (As listed in file MIT-License.txt)		-
Mozilla Public License (MPL)				1.0/1.1
Open Software License					2.0
PHP License						3.0
Python license (CNRI Python License)			-
Python Software Foundation License			2.1.1
Sleepycat License					"1999"
W3C License						"2001"
X11 License						"2001"
Zlib/libpng License					-
Zope Public License					2.0

Due to the many variants of some of the above licenses, we require that any
version follow the 2003 version of the Free Software Foundation's Free
Software Definition (http://www.gnu.org/philosophy/free-sw.html) or version
1.9 of the Open Source Definition by the Open Source Initiative
(http://www.opensource.org/docs/definition.php).

2. Definitions

   1. Terms used, but not defined, herein shall have the meaning provided
      in the GPL.
   2. Derivative Work means a derivative work under copyright law.

3. Applicability

This FLOSS Exception applies to all Programs that contain a notice placed
by MySQL AB saying that the Program may be distributed under the terms of
this FLOSS Exception. If you create or distribute a work which is a
Derivative Work of both the Program and any other work licensed under the
GPL, then this FLOSS Exception is not available for that work; thus, you
must remove the FLOSS Exception notice from that work and comply with the
GPL in all respects, including by retaining all GPL notices. You may choose
to redistribute a copy of the Program exclusively under the terms of the
GPL by removing the FLOSS Exception notice from that copy of the Program,
provided that the copy has never been modified by you or any third party.

Version 1.5, 15 July 2004

      
---------------------------------------------------------------------------

The Berkeley db-3.1.17-patched library which is partly included 
(as long as it is not available as own Debian package) can be downloaded 
at www.sleepycat.com. The following is it's license:

/*-
 * $Id: LICENSE,v 11.6 2000/02/14 02:59:37 bostic Exp $
 */

The following is the license that applies to this copy of the Berkeley DB
software.  For a license to use the Berkeley DB software under conditions
other than those described here, or to purchase support for this software,
please contact Sleepycat Software at one of the following addresses:

	Sleepycat Software	db@sleepycat.com
	394 E. Riding Dr.	510-526-3972
	Carlisle, MA 01741	877-SLEEPYCAT (toll-free, USA only)
	USA

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/*
 * Copyright (c) 1990-2000
 *	Sleepycat Software.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Redistributions in any form must be accompanied by information on
 *    how to obtain complete source code for the DB software and any
 *    accompanying software that uses the DB software.  The source code
 *    must either be included in the distribution or be available for no
 *    more than the cost of distribution plus a nominal fee, and must be
 *    freely redistributable under reasonable conditions.  For an
 *    executable file, complete source code means the source code for all
 *    modules it contains.  It does not include source code for modules or
 *    files that typically accompany the major components of the operating
 *    system on which the executable file runs.
 *
 * THIS SOFTWARE IS PROVIDED BY SLEEPYCAT SOFTWARE ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT, ARE DISCLAIMED.  IN NO EVENT SHALL SLEEPYCAT SOFTWARE
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 * THE POSSIBILITY OF SUCH DAMAGE.
 */
/*
 * Copyright (c) 1990, 1993, 1994, 1995
 *	The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
/*
 * Copyright (c) 1995, 1996
 *	The President and Fellows of Harvard University.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY HARVARD AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL HARVARD OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
