Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8409619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:57:40+00:00 2026-06-09T23:57:40+00:00

I called the function mysql_stat() in PHP, which gave me the following result: Uptime:

  • 0

I called the function mysql_stat() in PHP, which gave me the following result:

  • Uptime: 7733455
  • Threads: 1
  • Questions: 2218231
  • Slow queries: 1552
  • Opens: 14989
  • Flush tables: 1
  • Open tables: 6
  • Queries per second avg: 0.287

I created the database 6 days ago, but the uptime suggests, that it was nearly 90 days ago (or is this the last restart of the server?)

What is the threshold for a query beeing slow query?

Can I somehow check, which queries where slow?

How can open Tables be 6, if I only have 3 Tables in my database?

What is the meaning of the entries Threads, Opens and Flush tables?

Is it possible to reset the statistics?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:57:42+00:00Added an answer on June 9, 2026 at 11:57 pm

    Due to PHP DOCS use of mysql extension is discouraged. Use mysqli instead.

    Meanings of fields:

       o   Uptime
    
           The number of seconds the MySQL server has been running.
    
       o   Threads
    
           The number of active threads (clients).
    
       o   Questions
    
           The number of questions (queries) from clients since the server was
           started.
    
       o   Slow queries
    
           The number of queries that have taken more than long_query_time
           seconds. (MySQL DOSC "The Slow Query Log" section).
    
       o   Opens
    
           The number of tables the server has opened.
    
       o   Flush tables
    
           The number of flush-*, refresh, and reload commands the server has
           executed.
    
       o   Open tables
    
           The number of tables that currently are open.
    
       o   Memory in use
    
           The amount of memory allocated directly by mysqld. This value is
           displayed only when MySQL has been compiled with safemalloc, which
           is available only before MySQL 5.5.6.
    
       o   Maximum memory used
    
           The maximum amount of memory allocated directly by mysqld. This
           value is displayed only when MySQL has been compiled with
           safemalloc, which is available only before MySQL 5.5.6.
    

    To reset this values use #> mysqladmin flush-host in your mysql server terminal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following php script that is called by jquery ajax function report_range($time,
I have a function called PreProcessSource, which allocates a boost::wave::context and does some preprocessing;
Heres my custom function called doIt which as im sure you can see simply
there is a mysql function in php called mysql_free_result() ; I couln't find any
I have a file called function.php that has a function like this: public function
Is it possible to pass some variables to the called function, it tried it
called a function like :- $setmessage = setlatestmessage($sessionid, $sendersuserid, $message1); the function is in
I have a function called call facebook. call_facebook(284328420994); call_facebook(197214710347172); It runs severaltimes It makes
I have a function called Colorbox (jQuery plugin) that takes a number of parameters
I have this function called ProperCase that takes a string, then converts the first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.