MySQL | SESSION_USER( ) Function Last Updated : 25 Nov, 2019 Comments Improve Suggest changes Like Article Like Report The MySQL SESSION_USER() function is used for returning the current user name and host name for the MySQL connection being used by the user. The SESSION_USER() function does not require any parameter to be passed. The user name returned by the SESSION_USER() function is the name of the user-specified when connecting to the server whereas the host name returned by the SESSION_USER() function is the name of the client host that the user uses to establish a connection from. Syntax: SESSION_USER() Parameters Used: It does not require any parameter or argument to be passed. Return Value: The MySQL SESSION_USER() function returns the current user name and host name for the MySQL connection. Supported Versions of MySQL MySQL 5.7 MySQL 5.6 MySQL 5.5 MySQL 5.1 MySQL 5.0 MySQL 4.1 MySQL 4.0 MySQL 3.23 Example: Implementing SESSION_USER() function in MySQL. SELECT SESSION_USER(); Output: author@gfg Comment More infoAdvertise with us Next Article MySQL | SESSION_USER( ) Function S Shubrodeep Banerjee Follow Improve Article Tags : SQL mysql SQLmysql Similar Reads SYSTEM_USER() Function in MySQL SYSTEM_USER() : This function helps to return the name of the user and hostname for the current MySQL user. And the SYSTEM_USER() function doesn't require any parameter to be passed. The username which will be returned is the name of the user-specified when connecting to the server. And the hostname 1 min read MySQL | PASSWORD Function The MySQL PASSWORD function is used for the generation of a hashed password using a plain-text password string It uses hashing techniques to generate the hashed password. This function is carried out by the authentication system. MySQL server uses the PASSWORD function to encrypt MySQL passwords for 1 min read SESSION_USER() Function in SQL Server SESSION_USER() : This function in SQL Server is used to return the current user's name in the database of SQL Server that is in use. Features : This function is used to find the current user's name.This function comes under Advanced Functions.This function doesn't accept any parameter. Syntax : SESS 2 min read MySQL | OLD_PASSWORD Function The MySQL OLD_PASSWORD function is used for generating a hashed password from a plaintext password string. The OLD_PASSWORD function uses hashing techniques to perform the generation of the hashed password. This function is carried out by the authentication system. This function is used by the MySQL 1 min read MySQL | SHA1( ) Function The MySQL SHA1() function is used for encrypting a string using the SHA-1 technique. The SHA1 stands for secure hash algorithm and it produces a 160-bit checksum for a user inputted string. The MySQL SHA1() function returns NULL if the string passed as an argument is a NULL string. The SHA1() functi 1 min read Like