Mega Code Archive
Categories
/
MySQL Tutorial
/
Information Functions
USER() returns the current MySQL username and hostname
mysql> mysql> SELECT USER(); +----------------+ | USER() | +----------------+ | root@localhost | +----------------+ 1 row in set (0.00 sec) mysql>