MySQL 5.1 Referenzhandbuch ?· MySQL 5.1 Referenzhandbuch Dies ist eine Übersetzung des MySQL-Referenzhandbuchs,…

  • Published on
    05-Jan-2019

  • View
    212

  • Download
    0

Embed Size (px)

Transcript

MySQL 5.1 Referenzhandbuch

MySQL 5.1 ReferenzhandbuchDies ist eine bersetzung des MySQL-Referenzhandbuchs, das sich auf dev.mysql.com befindet. Das ursprnglicheReferenzhandbuch ist auf Englisch, und diese bersetzung ist nicht notwendigerweise so aktuell wie die englischeAusgabe. Das vorliegende deutschsprachige Handbuch behandelt MySQL bis zur Version 5.1.

Copyright 1997, 2010, Oracle and/or its affiliates. All rights reserved.

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protectedby intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce,translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverseengineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report themto us in writing.

Wird diese Software oder zugehrige Dokumentation an die Regierung der Vereinigten Staaten von Amerika bzw. einen Lizenznehmer im Auftragder Regierung der Vereinigten Staaten von Amerika geliefert, gilt Folgendes:

U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Governmentcustomers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation andagency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictionsand license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, theadditional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway,Redwood City, CA 94065.

This software is developed for general use in a variety of information management applications. It is not developed or intended for use in anyinherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerousapplications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of thissoftware. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. MySQL is a trademark of Oracle Corporation and/or its affiliates, andshall not be used without Oracle's express written authorization. Other names may be trademarks of their respective owners.

This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporationand its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services.Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-partycontent, products, or services.

This document in any form, software or printed matter, contains proprietary information that is the exclusive property of Oracle. Your access toand use of this material is subject to the terms and conditions of your Oracle Software License and Service Agreement, which has been executedand with which you agree to comply. This document and information contained herein may not be disclosed, copied, reproduced, or distributed toanyone outside Oracle without prior written consent of Oracle or as specifically provided below. This document is not part of your license agreementnor can it be incorporated into any contractual agreement with Oracle or its subsidiaries or affiliates.

This documentation is NOT distributed under a GPL license. Use of this documentation is subject to the following terms:

You may create a printed copy of this documentation solely for your own personal use. Conversion to other formats is allowed as long as theactual content is not altered or edited in any way. You shall not publish or distribute this documentation in any form or on any media, except if youdistribute the documentation in a manner similar to how Oracle disseminates it (that is, electronically for download on a Web site with the software)or on a CD-ROM or similar medium, provided however that the documentation is disseminated together with the software on the same medium.Any other use, such as any dissemination of printed copies or use of this documentation, in whole or in part, in another publication, requires theprior written consent from an authorized representative of Oracle. Oracle and/or its affiliates reserve any and all rights to this documentation notexpressly granted above.

For more information on the terms of this license, for details on how the MySQL documentation is built and produced, or if you are interested indoing a translation, please visit MySQL Contact & Questions.

For additional licensing information, including licenses for libraries used by MySQL products, see Vorwort.

If you want help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists where you can discuss your issues with otherMySQL users.

For additional documentation on MySQL products, including translations of the documentation into other languages, and downloadable versions invariety of formats, including HTML and PDF formats, see the MySQL Documentation Library.

Zusammenfassung

Das ist das MySQL-Referenzhandbuch. Es dokumentiert MySQL 5.1 bis 5.1.5-alpha.

http://dev.mysql.com/doc/mysql/enhttp://dev.mysql.com/contact/http://forums.mysql.comhttp://lists.mysql.comhttp://dev.mysql.com/doc

Dokument erzeugt am: 2014-05-24 (revision: 590)

v

InhaltsverzeichnisVorwort ........................................................................................................................................... xxiii1 Allgemeine Informationen ber MySQL ............................................................................................ 1

1.1 ber dieses Handbuch ......................................................................................................... 21.2 Konventionen in diesem Handbuch ....................................................................................... 31.3 Was ist MySQL AB? ............................................................................................................. 41.4 Was ist MySQL? .................................................................................................................. 5

1.4.1 Geschichte von MySQL ............................................................................................. 61.4.2 Die wichtigsten Features von MySQL ......................................................................... 71.4.3 Wie stabil ist MySQL? ................................................................................................ 91.4.4 Wie gro knnen MySQL-Tabellen sein? .................................................................. 101.4.5 Jahr-2000-Konformitt .............................................................................................. 11

1.5 berblick ber das Datenbanksystem MaxDB ...................................................................... 131.5.1 Was ist MaxDB? ...................................................................................................... 131.5.2 Geschichte von MaxDB ............................................................................................ 141.5.3 Features von MaxDB ............................................................................................... 141.5.4 Lizenzierung und Support ......................................................................................... 151.5.5 Unterschiede zwischen MaxDB und MySQL .............................................................. 151.5.6 Interoperabilitt zwischen MaxDB und MySQL ........................................................... 161.5.7 Links zu MaxDB ...................................................................................................... 16

1.6 MySQL-Roadmap ............................................................................................................... 161.6.1 Was ist neu in MySQL 5.1? ..................................................................................... 17

1.7 Informationsquellen zu MySQL ............................................................................................ 181.7.1 Die MySQL-Mailinglisten .......................................................................................... 181.7.2 MySQL-Community-Support in den MySQL-Foren ..................................................... 211.7.3 Untersttzung fr die MySQL-Community auf Internet Relay Chat (IRC) ...................... 21

1.8 Wie man Bugs oder Probleme meldet ................................................................................. 211.9 Wie kompatibel zum SQL-Standard ist MySQL? ................................................................... 26

1.9.1 An welche Standards hlt sich MySQL? .................................................................... 271.9.2 Auswahl der SQL-Modi ............................................................................................ 271.9.3 MySQL im ANSI-Modus laufen lassen ...................................................................... 271.9.4 MySQL-Erweiterungen zu ANSI SQL92 ..................................................................... 281.9.5 MySQL: Unterschiede im Vergleich zu ANSI SQL92 .................................................. 311.9.6 Wie MySQL mit Constraints umgeht ......................................................................... 38

2 Installation von MySQL .................................................................................................................. 432.1 Allgemeines zur Installation ................................................................................................. 44

2.1.1 Betriebssysteme, die von MySQL untersttzt werden ................................................. 452.1.2 Welche MySQL-Version Sie benutzen sollten ............................................................ 472.1.3 Woher man MySQL bekommt ................................................................................... 582.1.4 Besttigen der Paketintegritt mittels MD5-Prfsummen oder GnuPG .......................... 592.1.5 Installationslayouts ................................................................................................... 61

2.2 Schnelle Standardinstallation von MySQL ............................................................................ 632.3 Installation von MySQL unter Windows ................................................................................ 63

2.3.1 Systemvoraussetzungen fr Windows ....................................................................... 642.3.2 Auswahl eines Installationspakets ............................................................................. 652.3.3 Installation von MySQL mit dem automatischen Installer ............................................ 652.3.4 Verwendung des MySQL-Installations-Assistenten ..................................................... 652.3.5 Verwendung des Konfigurations-Assistenten ............................................................. 692.3.6 Installation von MySQL aus einem Noinstall-Zip-Archiv .............................................. 742.3.7 Entpacken des Installationsarchivs ............................................................................ 742.3.8 Anlegen einer Optionsdatei ....................................................................................... 742.3.9 Auswahl des MySQL Server-Typs ............................................................................. 75

MySQL 5.1 Referenzhandbuch

vi

2.3.10 Erstmaliges Starten des Servers ............................................................................. 762.3.11 Starten von MySQL von der Windows-Befehlszeile .................................................. 782.3.12 Starten von MySQL als Windows-Dienst ................................................................. 782.3.13 Test der MySQL-Installation .................................................................................... 812.3.14 Troubleshooting einer MySQL-Installation unter Windows ......................................... 812.3.15 Upgrade von MySQL unter Windows ...................................................................... 832.3.16 MySQL unter Windows im Vergleich zu MySQL unter Unix ....................................... 84

2.4 MySQL unter Linux installieren ............................................................................................ 872.5 Installation von MySQL unter Mac OS X .............................................................................. 892.6 Installation von MySQL unter NetWare ................................................................................ 922.7 Installation von MySQL auf anderen Unix-hnlichen Systemen .............................................. 942.8 Installation der Quelldistribution ........................................................................................... 97

2.8.1 Schnellinstallation, berblick ..................................................................................... 982.8.2 Typische configure-Optionen .............................................................................. 1012.8.3 Installation vom Entwicklungs-Source-Tree .............................................................. 1042.8.4 Probleme beim Kompilieren? .................................................................................. 1072.8.5 Anmerkungen zu MIT-pthreads ............................................................................... 1102.8.6 Windows-Quelldistribution ....................................................................................... 1122.8.7 MySQL-Clients auf Windows kompilieren ................................................................ 116

2.9 Einstellungen und Tests nach der Installation ..................................................................... 1162.9.1 Nach der Installation unter Windows durchzufhrende Schritte ................................. 1162.9.2 Schritte nach der Installation unter Unix .................................................................. 1172.9.3 Einrichtung der anfnglich...

Recommended

View more >