MySQL 5.0 Reference Manual
vi
5.1.1. Server Option and Variable Reference .............................................................. 378
5.1.2. Server Configuration Defaults ........................................................................... 399
5.1.3. Server Command Options ................................................................................ 399
5.1.4. Server System Variables .................................................................................. 425
5.1.5. Using System Variables ................................................................................... 507
5.1.6. Server Status Variables ................................................................................... 516
5.1.7. Server SQL Modes .......................................................................................... 534
5.1.8. Server-Side Help ............................................................................................. 541
5.1.9. Server Response to Signals ............................................................................. 541
5.1.10. The Shutdown Process .................................................................................. 542
5.2. MySQL Server Logs ................................................................................................... 543
5.2.1. The Error Log .................................................................................................. 543
5.2.2. The General Query Log ................................................................................... 544
5.2.3. The Binary Log ................................................................................................ 545
5.2.4. The Slow Query Log ........................................................................................ 548
5.2.5. Server Log Maintenance .................................................................................. 549
5.3. Running Multiple MySQL Instances on One Machine ................................................... 550
5.3.1. Setting Up Multiple Data Directories ................................................................. 552
5.3.2. Running Multiple MySQL Instances on Windows ............................................... 553
5.3.3. Running Multiple MySQL Instances on Unix ...................................................... 555
5.3.4. Using Client Programs in a Multiple-Server Environment .................................... 556
6. Security ................................................................................................................................ 559
6.1. General Security Issues .............................................................................................. 559
6.1.1. Security Guidelines .......................................................................................... 560
6.1.2. Keeping Passwords Secure ............................................................................. 561
6.1.3. Making MySQL Secure Against Attackers ......................................................... 569
6.1.4. Security-Related
mysqld
Options and Variables ............................................... 570
6.1.5. How to Run MySQL as a Normal User ............................................................. 571
6.1.6. Security Issues with
LOAD DATA LOCAL
......................................................... 572
6.1.7. Client Programming Security Guidelines ........................................................... 573
6.2. The MySQL Access Privilege System .......................................................................... 574
6.2.1. Privileges Provided by MySQL ......................................................................... 575
6.2.2. Privilege System Grant Tables ......................................................................... 579
6.2.3. Specifying Account Names ............................................................................... 583
6.2.4. Access Control, Stage 1: Connection Verification .............................................. 585
6.2.5. Access Control, Stage 2: Request Verification ................................................... 588
6.2.6. When Privilege Changes Take Effect ................................................................ 590
6.2.7. Causes of Access-Denied Errors ...................................................................... 590
6.3. MySQL User Account Management ............................................................................. 595
6.3.1. User Names and Passwords ............................................................................ 595
6.3.2. Adding User Accounts ..................................................................................... 597
6.3.3. Removing User Accounts ................................................................................. 600
6.3.4. Setting Account Resource Limits ...................................................................... 600
6.3.5. Assigning Account Passwords .......................................................................... 602
6.3.6. Using SSL for Secure Connections ................................................................... 603
6.3.7. Connecting to MySQL Remotely from Windows with SSH .................................. 614
6.3.8. SQL-Based MySQL Account Activity Auditing .................................................... 614
7. Backup and Recovery ........................................................................................................... 617
7.1. Backup and Recovery Types ...................................................................................... 618
7.2. Database Backup Methods ......................................................................................... 620
7.3. Example Backup and Recovery Strategy ..................................................................... 622
7.3.1. Establishing a Backup Policy ............................................................................ 623
7.3.2. Using Backups for Recovery ............................................................................ 625
7.3.3. Backup Strategy Summary ............................................................................... 625
7.4. Using
mysqldump
for Backups ................................................................................... 625
7.4.1. Dumping Data in SQL Format with
mysqldump
................................................ 626
7.4.2. Reloading SQL-Format Backups ....................................................................... 627
7.4.3. Dumping Data in Delimited-Text Format with
mysqldump
.................................. 627
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...