Home >Database >Mysql Tutorial >How to query which users are there in mysql

How to query which users are there in mysql

coldplay.xixi
coldplay.xixiOriginal
2020-10-20 15:43:3316174browse

Mysql method to query which users are: First click the start menu button and search for cmd; then command [mysql -u root -p] in the window; finally enter the code [select user, host from mysql.user; 】Just make a query.

How to query which users are there in mysql

Mysql method to query which users are:

1. Click the start menu button in the lower left corner

How to query which users are there in mysql

2. Search for cmd in the search box below the start menu

How to query which users are there in mysql

3. Press the Enter key to open the cmd window

How to query which users are there in mysql

4. Enter the mysql -u root -p command and press Enter

How to query which users are there in mysql

5. When prompted to enter the password, enter it correctly. Password, enter the mysql command line

How to query which users are there in mysql

6. Enter the command

select user,host from mysql.user; in the mysql command line to return a list of all users

How to query which users are there in mysql

More related free learning recommendations: mysql tutorial(Video )

The above is the detailed content of How to query which users are there in mysql. 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