Home  >  Article  >  Database  >  How to check MySQL username?

How to check MySQL username?

青灯夜游
青灯夜游Original
2019-05-20 13:30:4438841browse

How to check MySQL username?

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

How to check MySQL username?

How to check MySQL username?

How to check MySQL username?

##2. Connect to the mysql server

Enter the following command , then press Enter

mysql -u root -p

How to check MySQL username?##3. When prompted to enter the password, enter the correct password and enter the mysql command line


How to check MySQL username?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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn