Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 372 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I get a list of user accounts using the command line in MySQL?

#11
Peter and Jesse are correct, but just make sure you first select the "mysql" database.

```sql
use mysql;
select User from mysql.user;
```

That should do your trick.
Reply

#12
To avoid repetitions of users when they connect from a different origin:

select distinct User from mysql.user;
Reply

#13
This displays the list of unique users:

SELECT DISTINCT User FROM mysql.user;
Reply

#14
$> mysql -u root -p -e 'Select user from mysql.user' > allUsersOnDatabase.txt

Executing this command on a Linux command line prompt will first ask for the password of MySQL root user. On providing the correct password it will print all the database users to the text file.


Reply

#15
SELECT User FROM mysql.user;

Use the above query to get the MySQL users.

Reply

#16
Log in to MySQL as root and type the following query:

```lang-none
select User from mysql.user;

+------+
| User |
+------+
| amon |
| root |
| root |
+------+
```


Reply

#17
To see your users, it would be to use the mysql database.

```
USE mysql;
```

And then make the select.

```
SELECT user,host FROM user;
```

**Another option** is to put the **BD.Table**.

For example :

```
SELECT user,host FROM mysql.user;
```
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through