How to check the user name in MySQL:
1. Search cmd in the search box below the start menu and click Open the cmd window
##2. Connect to the mysql server Enter the following command , then press Entermysql -u root -p
##3. When prompted to enter the password, enter the correct password and enter the mysql command line
4. Enter the following command in the mysql command line:
select user,host from mysql.user;
to return the list of all users and view the mysql user name
##The above is the detailed content of How to check MySQL username?. For more information, please follow other related articles on the PHP Chinese website!