Tài liệu MySQL Pocket Reference, Second Edition doc

134 588 0
Tài liệu MySQL Pocket Reference, Second Edition doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... tool while MySQL is 14 | MySQL Pocket Reference running Exactly what kind of checks and fixes occur vary from database engine to database engine mysqld The MySQL server process You should never start this directly; instead use mysqld_safe mysqld_safe The server process manager (Under MySQL versions prior to MySQL 4.0, this script was called safe_mysqld.) It is a process that starts up the mysqld server... then retry the connection A MySQL configuration file has the following format: # Example MySQL # # These options [client] password port socket configuration file go to all clients = my_password = 3306 = /var/lib /mysql/ mysql.sock Setup | 7 # These options are specifically targeted at the mysqld server [mysqld] port = 3306 socket = /var/lib /mysql/ mysql.sock max_allowed_packet=1M MySQL supports multiple configuration... sequence \g 12 | MySQL Pocket Reference mysql_ upgrade After you install a new version of MySQL, you can run this utility to examine your tables and make sure they are consistent with your new version of MySQL You should run this command each time you upgrade MySQL mysqladmin The MySQL administrative interface Though many of this tool’s functions can be accomplished using SQL and the mysql command-line... source code at the MySQL web site, http://www mysql. com Before installing using either approach, you need to prepare your operating system for MySQL Specifically, you should create a mysql user and group under which MySQL will run Downloading MySQL MySQL AB changes the download process somewhat frequently, so the exact process of downloading MySQL may vary from the details described here MySQL comes in... following command: $ man -M/usr/local /mysql/ man mysql MySQL provides the following command-line tools: msql 2mysql This utility is handy for people converting applications written for mSQL to MySQL These days, however, few people need this help myisamchk This tool verifies the integrity of your MyISAM tables and potentially fixes any problems that it detects mysql The MySQL interactive SQL interpreter It... flush-privileges Forces MySQL to reload all grant tables Command-Line Tools | 13 kill id[,id] Kills the specified MySQL threads password new_password Sets the password for the user to the specified new password mysqladmin -u root password new_password should be the first thing you do with any new MySQL install ping Verifies that mysqld is actually running processlist Shows the active MySQL threads You can... svccfg import /var/svc/manifest/application/database/ mysql. xml One installed, you should see the following: $ svcs mysql STATE disabled default STIME Mar_10 FMRI svc:/application/database /mysql: To start MySQL and have it run on start-up, execute: $ svcadm enable mysql Other Unix Setting up other variants of Unix is as simple as copying the script mysql. server from the source’s support-files directory... Startup In general, you will want MySQL to begin running when the operating system comes up How you do this depends on your operating system 8 | MySQL Pocket Reference Mac OS X The modern Mac OS X binary package automatically sets itself up to launch on start To verify this, you should see a /Library/ StartupItems/MySQLCOM/ directory on your hard drive Solaris The MySQL binary for Solaris does not... Solaris manifest file in /var/svc/manifest/application/database /mysql. xml You should first verify that this file exists If not, check the MySQL distribution for a Solaris manifest or look on the Internet To set up MySQL to launch on startup, first verify it is not yet set to run on startup: $ svcs mysql If you see the following: svcs: Pattern 'mysql' doesn't match any instances STATE STIME FMRI The service... server MERGE Combines multiple MyISAM tables NDB/NDBCLUSTER Network database, used with MySQL Cluster 4 | MySQL Pocket Reference Database Events Introduced with MySQL 5.1, database events allow you to arrange for SQL that runs at a specified time in the future either once, or on a recurring calendar Setup You can install MySQL by compiling the source code with the options that best suit your needs, or by . class="bi x0 y0 w0 h0" alt="" MySQL Pocket Reference

Ngày đăng: 15/02/2014, 19:20

Từ khóa liên quan

Mục lục

  • MySQL Pocket Reference, Second Edition

    • Contents

    • MySQL Pocket Reference

      • Introduction

      • MySQL 5

        • Views

        • Triggers

        • Stored Procedures

        • Cursors

        • New Storage Engines

        • Database Events

        • Setup

          • Downloading MySQL

          • Configuration

          • Startup

            • Mac OS X

            • Solaris

            • Other Unix

            • Set the Root Password

            • Replication

              • Master configuration

              • Slave configuration

              • Command-Line Tools

              • Data Types

                • Numerics

                  • BIGINT

                  • BIT

                  • DEC

Tài liệu cùng người dùng

Tài liệu liên quan