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

  • SEARCH
  • Home
  • 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 8662443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:44:20+00:00 2026-06-12T16:44:20+00:00

This is a problem a friend of mine has. He has a table keyword

  • 0

This is a problem a friend of mine has.

He has a table keyword with only 9000 records. The MySQL server has a public ip and when I execute SELECT id, word FROM keyword from my machine(I access the MySQL server over the Internet), the query is very fast(200 milliseconds). No matter how many times I run it, it is very fast as it should be. So far so good.

Now he runs the same query from his machine in his intranet and accesses the MySQL server again with the public ip. The query sometimes takes as much as 40 seconds and it is logged as a slow query in the MySQL server log. He tried also from another machine in his intranet and again it takes sometimes as much as 40 seconds.

How is this possible? If it is a network problem only in his intranet, then why MySQL logs it as a slow query? AFAIK, MySQL query time in the slow query log doesn’t include network transfer?

How to troubleshoot this problem? I am really frustrated.

Greetings,

Petar

  • 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-12T16:44:21+00:00Added an answer on June 12, 2026 at 4:44 pm

    Use this to see the difference:

    SET profiling = 1;
    SELECT id, word FROM keyword;
    

    and maybe add:

    SHOW PROFILES;
    

    More information in the manual:
    http://dev.mysql.com/doc/refman/5.0/en/show-profile.html

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

Sidebar

Related Questions

Friend of mine has a problem :). There is an application written in Visual
This problem has been bugging me for a long time. For example, the code
This problem has bugged me so many times and i have now decided to
This problem is baffling me: BEGIN; INSERT INTO sub_users(user_id, email) SELECT user_id FROM users
I'm trying to help a friend of mine who has to do a test
A friend of mine is getting this error on ALL of her websites. They
A friend of mine has told me that on x86 architecture DMA controller can't
This is a tricky question to ask. A friend of mine seeks help, and
I have this problem of my app crashing (only when press a certain UIButton)
Okay - yes, this is homework, but it isn't mine. I have a friend

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.