Added mariadb page
This commit is contained in:
parent
5057569fc4
commit
33d0dfff97
2 changed files with 23 additions and 0 deletions
0
docs/knowledge-base/bootable-win-usb-on-macos.md
Normal file
0
docs/knowledge-base/bootable-win-usb-on-macos.md
Normal file
23
docs/knowledge-base/mariadb.md
Normal file
23
docs/knowledge-base/mariadb.md
Normal file
|
|
@ -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;`
|
||||||
Loading…
Add table
Add a link
Reference in a new issue