.
This commit is contained in:
@@ -63,3 +63,15 @@ SELECT USER,plugin,host FROM mysql.user;
|
||||
|
||||
### MySQL Show User Privileges
|
||||
[MySQL Show User Privileges](https://phoenixnap.com/kb/mysql-show-user-privileges)
|
||||
|
||||
|
||||
## Various tricks and tips
|
||||
|
||||
### Get size of all databases on server
|
||||
|
||||
```
|
||||
SELECT table_schema "DB Name",
|
||||
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
|
||||
FROM information_schema.tables
|
||||
GROUP BY table_schema;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user