Subscribe  RSS
  • About
  • Contact
  • Products
  • Year 2100
    • 第一章 环球政府元年
    • 第二章 爱玛太太的新宝宝
    • 第三章 丹尼尔的文化教育
    • 第四章 黎明医院的秘密
    • 第五章 生物家海勒的实验室
    • 第六章 马克的农场
    • 第七章 太平洋底的不夜城
    • 第八章 雅丽小姐的环太阳系旅行

太阳帆数据 Sunfine Data

Provides solutions on data analysis, software tutorials, hands-on instructions and tips


  • Data analysis
    • Excel
    • MINITAB
    • R/S-Plus
    • SAS
  • Database
    • Access
    • MySQL
    • XML
  • Graphing
  • Hands-on
    • Hardware
    • Software
  • Programming
    • C/C++/C#
    • JavaScript
    • MATLAB
    • PERL
    • PHP
    • VBA/ASP
  • Tips
  • Tutorial

MySQL server problem – unauthenticated user bug

By Zhanshan Dong on March 3rd, 2010

A couple of months ago, I installed MySQL Workbench 5.2 OSS on my Windows box and used it to monitor my MySQL server that is running on another machine. I noticed that my server status changed from running to stop back and forth frequently, similarly to the following entries in the Startup tab.

2010-03-03 21:06:48 – Server is stopped
2010-03-03 21:06:51 – Server is running
2010-03-03 21:10:28 – Server is stopped
2010-03-03 21:10:31 – Server is running
2010-03-03 21:10:53 – Checked server status: Server is running.

Then I clicked different tabs to check what was going on. I found a lot of entries in the Connection tab look like the following:
Id User Host db Command Time State Info
432 unauthenticated user 66.154.35.193:33207 NULL Connect NULL login NULL
433 unauthenticated user 66.154.35.193:33208 NULL Connect NULL login NULL
434 unauthenticated user 66.154.35.193:33209 NULL Connect NULL login NULL
435 unauthenticated user 66.154.35.193:33210 NULL Connect NULL login NULL
436 unauthenticated user 66.154.35.193:33196 NULL Connect NULL login NULL

I was really upset and confused. My initial thought was my server was under attack. But it was not; the traffic was from my webserver. I googled “mysql unautherticated user login state”. There were a few links shown up. I found useful information from this link (http://bugs.mysql.com/bug.php?id=2814).

The following comment really helped me. I checked etc/hosts on my db server and found there is no reverse DNS setup. You can also find useful information at http://hackmysql.com/dns.

[23 Feb 2005 23:18] Louis Savage
Was able to replicate issue. Only when there was no reverse dns setup or no entry in
/etc/hosts about the remote computers. As soon as this was added the issue stopped.

I went ahead to add entry to the etc/hosts file, something looks like:

192.168.2.XXX   webserver name

After I did that, the unaunthenticated user entries in MySQL Workbench 5.2 OSS connection tab disappeared immediately. Magic!

Then I executed the following Linux command at my server.

mysqladmin flush-hosts

Since then, my server works normally and the unwelcome information does not show again.

[PDF]
  • Share/Bookmark
Categorized under: MySQL.
Tagged with: bug, connect, login, MySQL, Server, unauthenticated, user, webserver.

One Response to “MySQL server problem – unauthenticated user bug”

  1. Tweets that mention MySQL server problem – unauthenticated user bug | 太阳帆数据 Sunfine Data -- Topsy.com says:
    2010/04/25 at 8:57 pm

    [...] This post was mentioned on Twitter by DickDeals. DickDeals said: MySQL server problem – unauthenticated user bug http://bit.ly/dAgAZ3 via @AddToAny [...]

    Log in to Reply

Leave a Response

Click here to cancel reply.

You must be logged in to post a comment.

← Fix PHP unknown Error 324
Embed Movie, Flash, Music files to PowerPoint Slides →

Recent Activity

  • Posts
  • Comments
  • Convert ip address from dotted quad notation to integer
  • Experiencing Samba sharing in O!Play Air HDP-R3
  • Use public geoip database in your web project
  • Remove BOM from utf-8 files
  • An example for MySQL query optimization
  • JavaScript handling UTF8 characters
  • Solution for Cannot modify header information in PHP application
  • Return an array from a customized VBA function
  • An example of smooth interpolation
  • U’s Bargain Network, an online deal publishing system
  • cna training on Online Notetaker - an ASP web application
  • PowerPoint to Video on Create PowerPoint slide in C#
  • Dave on Build a full-blown file/web server on Linksys NSLU2
  • Amateur Liberal Pics on Estimation of confidence interval and predicted values of the dependent variable in a linear equation
  • Stephie on A C# class to control Excel - A core class used in TWE 2.0
  • best canadian pharmacy on How to split a MySQL dumped file into tables
  • Mr.Carrot74 on A complete, generic AJAX framework (code provided)
  • Chrizstone on Create PowerPoint slide in C#
  • Brit Amateur on Estimation of confidence interval and predicted values of the dependent variable in a linear equation
  • Adwaswen on How to split a MySQL dumped file into tables

Archives

  • Categories
  • Tags
  • Dates
  • Authors
  • Data analysis
    • Excel
    • MINITAB
    • R/S-Plus
    • SAS
  • Database
    • Access
    • MySQL
    • XML
  • Graphing
  • Hands-on
    • Hardware
    • Software
  • Programming
    • C/C++/C#
    • JavaScript
    • MATLAB
    • PERL
    • PHP
    • VBA/ASP
  • Tips
  • Tutorial
AJAX ASP automation C/C++/C# Chi-Square test Chinese Database Debian eDigitizer EEE BOX Excel file server firmware Flash FTP function graph GRUB javascript Linksys linux MATLAB MySQL NSLU2 Optimization PERL PHP Powerpoint R SAS Search Server Software Solver Twitter Ubuntu user utf-8 VBA VB Script virus visualization web server Windows Worksheet function
  • July 2010 (2)
  • June 2010 (2)
  • May 2010 (5)
  • April 2010 (8)
  • March 2010 (4)
  • February 2010 (1)
  • January 2010 (4)
  • December 2009 (4)
  • November 2009 (13)
  • October 2009 (2)
  • September 2009 (16)
  • August 2009 (52)

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Blogroll

  • Old articles
  • Online Bookmark
  • Online Note
  • Online RefLib
  • Plugins
  • Suggest Ideas
  • Themes
  • U's Bargain Network
Powered by WordPress and the PressPlay Theme
Copyright © 2010 太阳帆数据 Sunfine Data