From 40e83f1fc335c62aa2de8e7c55d62d65df08add9 Mon Sep 17 00:00:00 2001
From: Christian Cleberg <hello@cleberg.net>
Date: Sat, 19 Oct 2024 11:31:35 -0500
Subject: add database admin tools

---
 db_admins/mysql_admins_alt.sql | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 db_admins/mysql_admins_alt.sql

(limited to 'db_admins/mysql_admins_alt.sql')

diff --git a/db_admins/mysql_admins_alt.sql b/db_admins/mysql_admins_alt.sql
new file mode 100644
index 0000000..ac855f4
--- /dev/null
+++ b/db_admins/mysql_admins_alt.sql
@@ -0,0 +1,18 @@
+-- Global Permissions
+SELECT ... FROM mysql.user;
+
+-- Database Permissions
+SELECT ... FROM mysql.db
+WHERE db = @db_name;
+
+-- Table Permissions
+SELECT ... FROM mysql.tables
+WHERE db = @db_name;
+
+-- Column Permissions
+SELECT ... FROM mysql.columns_priv
+WHERE db = @db_name;
+
+-- Password Configuration
+SHOW GLOBAL VARIABLES LIKE 'validate_password%';
+SHOW VARIABLES LIKE 'validate_password%';
-- 
cgit v1.2.3-70-g09d2

