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.

CHAPTER 26 • INSTALLING AND CONFIGURING MYSQLwww.it-ebooks.infoExecuting this command produces output similar to the following:+---------------+--------+| Variable_name | Value |+---------------+--------+| table_type | InnoDB |+---------------+--------+1 row in set (0.00 sec)Finally, you can review some rather interesting statistical information such as uptime, queriesprocessed, and total bytes received and sent by using the following command:mysql>SHOW STATUS;Executing this command produces output similar to this:+-----------------------------------+-----------+| Variable_name | Value |+-----------------------------------+-----------+| Aborted_clients | 0 || Aborted_connects | 1 || Binlog_cache_disk_use | 0 || Binlog_cache_use | 0 || Bytes_received | 134 || Bytes_sent | 6149 || Com_admin_commands | 0 || . . . | || Threads_cached | 0 || Threads_connected | 1 || Threads_created | 1 || Threads_running | 1 || Uptime | 848 |+-----------------------------------+-----------+Managing Connection LoadsA well-tuned <strong>MySQL</strong> server is capable of working with many connections simultaneously. Eachconnection must be received and delegated to a new thread by the main <strong>MySQL</strong> thread, a task that,although trivial, isn’t instantaneous. The back_log parameter determines the number of connectionsthat are allowed to queue up while this main thread deals with a particularly heavy new connection load.By default this is set to 50.Keep in mind that you can’t just set this to a very high value and assume it will make <strong>MySQL</strong> runmore efficiently. Both your operating system and web server may have other maximum settings in placethat could render a particularly high value irrelevant.498

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

Saved successfully!

Ooh no, something went wrong!