Home > Database > Mysql Tutorial > body text

How to check MySQL username?

青灯夜游
Release: 2019-05-23 18:54:33
Original
38836 people have browsed it

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
Copy after login

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;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template