3,sh 或者 chmod +x 然后在 ./ 二者没什么区别

   [root@bj246 etc]# sh

   Using login values from ~/.my.cnf


   Testing for stored webmin passwords:

   None Found

   Could not auto detect login info!

   Found Sockets: /tmp/mysql.sock                 //找到一个mysql.sock

   Using: /tmp/mysql.sock                                 //使用这个.sock文件

   Would you like to provide a different socket?: [y/N] n       //是否使用其他的socket

   Do you have your login handy ? [y/N] : y        //是否手动输入用户名和密码,当然你可以在my.cnf里面设置

   User: root


   Would you like me to create a ~/.my.cnf file for you? [y/N] : n     //是不是要帮你在创建一个my.cnf



   user = 用户名

   password = 密码

   socket = /tmp/mysql.sock




   - By: Matthew Montgomery -

   MySQL Version 5.1.26-rc-log i686

   Uptime = 0 days 0 hrs 0 min 28 sec

   Avg. qps = 0

   Total Questions = 15

   Threads Connected = 1

   Warning: Server has not been running for at least 48hrs.

   It may not be safe to use these recommendations


   To find out more information on how each of these

   runtime variables effects performance visit:


   for info about MySQL\'s Enterprise Monitoring and Advisory Service

   SLOW QUERIES   (慢查询)

   The slow query log is enabled.

   Current long_query_time = 2.000000 sec.

   You have 0 out of 36 that take longer than 2.000000 sec. to complete

   Your long_query_time seems to be fine

   BINARY UPDATE LOG     (增加备份时的log文件)

   The binary update log is enabled

   The expire_logs_days is not set.

   The mysqld will retain the entire binary log until RESET MASTER or PURGE MASTER LOGS commands are run manually

   Setting expire_logs_days will allow you to remove old binary logs automatically


   Binlog sync is not enabled, you could loose binlog records during a server crash

   告诉我binary log没有设置生存时间,会一直保存下来,只到主服务器重起,并且binlog的同步并没有激活,如果服务器崩溃binlog数据将丢失


   Current thread_cache_size = 0

   Current threads_cached = 0

   Current threads_per_sec = 1

   Historic threads_per_sec = 0

   Your thread_cache_size is fine


   Current max_connections = 500

   Current threads_connected = 1

   Historic max_used_connections = 1

   The number of used connections is 0% of the configured maximum.

   You are using less than 10% of your configured max_connections.

   Lowering max_connections could help to avoid an over-allocation of memory

   See "MEMORY USAGE" section to make sure you are not over-allocating


   No InnoDB Support Enabled!

   MEMORY USAGE    (内存使用)

   Max Memory Ever Allocated : 17 M

   Configured Max Per-thread Buffers : 796 M

   Configured Max Global Buffers : 16 M

   Configured Max Memory Limit : 812 M

   Physical Memory : 1003 M

   Max memory limit seem to be within acceptable norms


   No key reads?!

   Seriously look into using some indexes

   Current MyISAM index space = 16 M

   Current key_buffer_size = 16 M

   Key cache miss rate is 1 : 0

   Key buffer free ratio = 88 %

   Your key_buffer_size seems to be fine

   QUERY CACHE   (查询缓存)

   Query cache is supported but not enabled       查询缓存是支持的,但是没有激活

   Perhaps you should set the query_cache_size   建议我设置一下query_cache_size的大小


   Current sort_buffer_size = 512 K

   Current read_rnd_buffer_size = 512 K

   No sort operations have been performed

   Sort buffer seems to be fine

   JOINS   (连接)

   Current join_buffer_size = 132.00 K

   You have had 0 queries where a join could not use an index properly

   Your joins seem to be using indexes properly

   OPEN FILES LIMIT  (最大打开文件数)

   Current open_files_limit = 2500 files

   The open_files_limit should typically be set to at least 2x-3x

   that of table_cache if you have heavy MyISAM usage.


   Your open_files_limit value seems to be fine

   TABLE CACHE  (表缓存)

   Current table_open_cache = 64 tables

   Current table_definition_cache = 256 tables

   You have a total of 506 tables

   You have 64 open tables.

   Current table_cache hit rate is 12%

   , while 100% of your table cache is in use

   You should probably increase your table_cache

   You should probably increase your table_definition_cache value.


   TEMP TABLES  (临时表)

   Current max_heap_table_size = 16 M

   Current tmp_table_size = 16 M

   Of 141 temp tables, 10% were created on disk

   Created disk tmp tables ratio seems fine

   TABLE SCANS  (表扫描)

   Current read_buffer_size = 256 K

   Current table scan ratio = 12 : 1

   read_buffer_size seems to be fine


   Current Lock Wait ratio = 0 : 225

   Your table locking seems to be fine

觉得文章有用?立即: 和朋友一起 共学习 共进步!



电子邮件地址不会被公开。 必填项已用 * 标注


您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>