Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 134 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
134
Dung lượng
916,59 KB
Nội dung
[...]... tool while MySQL is 14 | MySQLPocket 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 | MySQLPocket 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 MySQLMySQL 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 mysqlMySQL 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 | MySQLPocket 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 | MySQLPocket 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