aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql/passwords.sql
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2025-05-06 21:31:46 -0500
committerGitHub <noreply@github.com>2025-05-06 21:31:46 -0500
commit95bf612c338dec8235e89ca6a1d9e5e8cad3f997 (patch)
tree82cfd62fb145b7b686d4ae825ab2c2436343e590 /databases/mysql/passwords.sql
parentd62f25007470fe546e0f9d2e38a26e84146f72c5 (diff)
downloadaudit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.gz
audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.bz2
audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.zip
reorganize db dir (#6)
Diffstat (limited to 'databases/mysql/passwords.sql')
-rw-r--r--databases/mysql/passwords.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/mysql/passwords.sql b/databases/mysql/passwords.sql
new file mode 100644
index 0000000..1a5bf81
--- /dev/null
+++ b/databases/mysql/passwords.sql
@@ -0,0 +1,13 @@
+-- NOTE: Please review the server's "my.cnf" file for default values;
+-- OR: run the "SHOW [GLOBAL | SESSION] VARIABLES" command(s) on the database.
+
+-- Authentication methods only
+SELECT user, host, plugin FROM mysql.user;
+
+-- Default password configuration only
+SHOW GLOBAL VARIABLES LIKE 'validate_password%';
+SHOW VARIABLES LIKE 'validate_password%';
+
+-- Authentication methods and MySQL password configurations
+-- Reference: https://mariadb.com/kb/en/mysql-user-table/
+SELECT * FROM mysql.user