MySQL writing to net

8,794

"Writing to net" means that MySQL is writing a packet to the network interface. You mentioned you have PHP connecting via localhost; do you have any remote network connections at all?

Share:
8,794

Related videos on Youtube

robjmills
Author by

robjmills

PHP/MySQL/JavaScript programmer

Updated on September 17, 2022

Comments

  • robjmills
    robjmills over 1 year

    I have a server that has been running at high CPU load due to MySQL activity, when i run the command mysqladmin pr i often see a few queries with the state "writing to net". I had a look around and couldn't find much out about this other than the fact i read somewhere that this shouldnt be expected in usual MySQL activity. Any ideas what this could mean?

    Running MySQL 5.0.91-community on CentOS 4.8

    • Niall Donegan
      Niall Donegan over 13 years
      How are you connecting to the database? Is from localhost using a tcp connection? The local socket? Connecting from a remote server?
    • robjmills
      robjmills over 13 years
      standard PHP connection to mysql over localhost
  • robjmills
    robjmills over 13 years
    i do have connections to a few other servers within my network connecting via IP - would that explain it?
  • blueben
    blueben over 13 years
    It could. Are the queries in the writing to net state queries that get sent to remote machines?
  • robjmills
    robjmills over 13 years
    just seen one - doesnt appear to be for a remote connection as host is localhost and db/user are both local