get mysql username code example Example: mysql current user -- mysql current user: SELECT USER(); -- or SELECT CURRENT_USER();