SYSTEM_USER() Function in MySQL Last Updated : 07 Dec, 2020 Comments Improve Suggest changes Like Article Like Report 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 will be the name of the client host that to whom the user is connected. Note - The function SYSTEM_USER() and SESSION_USER() are almost similar. Syntax : SYSTEM_USER() Parameters : This function doesn't require any parameter or argument to be passed. Returns : The function will return the name of the user and hostname for the current MySQL user. 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 SYSTEM_USER() function in MySQL as follows. Syntax - SELECT SYSTEM_USER(); Output : //Expected Output will be in this format. username@hostname Now, Let's see the example. SELECT SYSTEM_USER(); Output : author@gfg Create Quiz Comment V vanshgaur14866 Follow 0 Improve V vanshgaur14866 Follow 0 Improve Article Tags : Technical Scripter SQL Technical Scripter 2020 DBMS-SQL mysql +1 More Explore BasicsWhat is SQL?6 min readSQL Data Types3 min readSQL Operators5 min readSQL Commands | DDL, DQL, DML, DCL and TCL Commands4 min readSQL Database Operations3 min readSQL CREATE TABLE3 min readQueries & OperationsSQL SELECT Query3 min readSQL INSERT INTO Statement4 min readSQL UPDATE Statement3 min readSQL DELETE Statement3 min readSQL - WHERE Clause2 min readAliases in SQL2 min readSQL Joins & FunctionsSQL Joins (Inner, Left, Right and Full Join)4 min readSQL CROSS JOIN1 min readSQL | Date Functions3 min readSQL | String functions6 min readData Constraints & Aggregate FunctionsSQL NOT NULL Constraint2 min readSQL PRIMARY KEY Constraint5 min readSQL Count() Function4 min readSQL SUM() Function2 min readSQL MAX() Function3 min readAVG() Function in SQL2 min readAdvanced SQL TopicsSQL Subquery5 min readWindow Functions in SQL6 min readSQL Stored Procedures7 min readSQL Triggers5 min readSQL Performance Tuning6 min readSQL TRANSACTIONS6 min readDatabase Design & SecurityIntroduction of ER Model9 min readIntroduction to Database Normalization6 min readSQL Injection11 min readSQL Data Encryption5 min readSQL Backup4 min readWhat is Object-Relational Mapping (ORM) in DBMS?7 min read Like