11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.it-ebooks.infoCHAPTER 26 • INSTALLING AND CONFIGURING MYSQL<strong>MySQL</strong>’s Configuration and Optimization ParametersThis section introduces several basic configuration parameters that might be useful to tweak whengetting started managing the server. But first take a moment to review how you can quickly view<strong>MySQL</strong>’s present settings.Viewing <strong>MySQL</strong>’s Configuration ParametersIn the preceding section, you learned how to call mysqld to learn what options are available to you. Tosee the present settings, you instead need to execute the mysqladmin client, like so:%>mysqladmin -u root -p variablesAlternatively, you can log in to the mysql client and execute the following command:mysql>SHOW VARIABLES;Doing so produces a lengthy list of variable settings similar to this:+---------------------------------+----------------------------+| Variable_name | Value |+---------------------------------+----------------------------+| auto_increment_increment | 1 || auto_increment_offset | 1 || automatic_sp_privileges | ON || back_log | 50 || basedir | C:\mysql5\ || binlog_cache_size | 32768 || bulk_insert_buffer_size | 8388608 || . . . | || version | 5.1.21-beta-community || version_comment | Official <strong>MySQL</strong> binary || version_compile_machine | ia32 || version_compile_os | Win32 || wait_timeout | 28800 |+---------------------------------+----------------------------+226 rows in set (0.00 sec)You can view the setting of a single variable by using the LIKE clause. For example, to determine thedefault storage engine setting, you use the following command:mysql>SHOW VARIABLES LIKE "table_type";497

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!