From 33d0dfff97dcaeacffffcaa232d4c31e939b3b58 Mon Sep 17 00:00:00 2001 From: Cory <16737666+corybiscuit@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:07:05 -0400 Subject: [PATCH] Added mariadb page --- .../bootable-win-usb-on-macos.md | 0 docs/knowledge-base/mariadb.md | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 docs/knowledge-base/bootable-win-usb-on-macos.md create mode 100644 docs/knowledge-base/mariadb.md diff --git a/docs/knowledge-base/bootable-win-usb-on-macos.md b/docs/knowledge-base/bootable-win-usb-on-macos.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/knowledge-base/mariadb.md b/docs/knowledge-base/mariadb.md new file mode 100644 index 0000000..fc5fef8 --- /dev/null +++ b/docs/knowledge-base/mariadb.md @@ -0,0 +1,23 @@ +--- +title: Mariadb +description: Mariadb server information +icon: simple/mariadb +--- + +## Databases + +| Database | Address | Port | User | +| ----------- | ----------- | ---- | ----------- | +| pterodactyl | 10.10.10.52 | 3306 | pterodactyl | +***All passwords stored in KeePassXC database.*** + +## Cheatsheet + +| Usage | Command +| :-------------------------------------------------------------|:------------- +| Open mariadb | `sudo mariadb -u root -p` +| List all databases | `show databases;` +| Create a database | `CREATE DATABASE database;` +| Create a user with a password | `CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';` +| Grant all permission of a database to user | `GRANT ALL ON database.* TO 'user'@'localhost';` +| Flush privileges | `FLUSH PRIVILEGES;`