Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4-2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL Configuration Options
Precompiled
Options
Startup
Configuration
Command-Line Configuration
Options File Options
4-3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Reasons to Use Option Files
4-4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Option File Groups
Option File
Client-Specific Server-Specific
• [mysql] • [mysqld]
• [mysqldump] • [mysqld_safe]
• ... • ...
4-5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Writing an Option File
[mysql]
show-warnings
4-6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Option File Locations
4-7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Sample Option Files
4-9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Displaying Options from Option Files
GLOBAL SESSION
• SET statement
– Within mysql, after startup:
SET [SESSION|GLOBAL] sql_mode=<mode_value>
File Name
Log File Options Programs
Table Name
Error --log-error host_name.err N/A
MASTER
Binary Log Rotation
Events
Server
Restart
FLUSH Maximum
LOGS Log Size
SLAVE
Execution of Master
Binary Log Binary Log Files
<AUDIT_RECORD TIMESTAMP="2012-10-12T09:35:15"
NAME="Connect" CONNECTION_ID="4" STATUS="0"
USER="root" PRIV_USER="root" OS_LOGIN="" PROXY_USER=""
HOST="localhost" IP="127.0.0.1" DB=""/>
<AUDIT_RECORD TIMESTAMP="2012-10-12T09:38:33"
NAME="Query" CONNECTION_ID="4" STATUS="0"
SQLTEXT="INSERT INTO tbl VALUES(1, 2)"/>