1

Mysql shows the following value in the slow query log

# User@Host: user[user] @  [127.0.0.1]

I'm assuming one if the "user" entries is a proxied login. An admittedly very quick glance of the code has not come up with how the user_host value is set.

Is this the case, and if so which one?

1 Answer 1

1

Here is one way to know

Login to MySQL and run this

SELECT USER(),CURRENT_USER(); SELECT SLEEP(15);

What will this tell you ?

  • USER() reports how you attempted to authenticate in MySQL
  • CURRENT_USER() reports how you were allowed to authenticate in MySQL

Look for the SELECT SLEEP(15); query in the slow log. From there, you should be able to tell whether USER() or CURRENT_USER() was used to set # User@Host:.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.