Skip to content

Commit 114bf4b

Browse files
sahsanujaapmarcus
andauthored
Update databases.md (hestiacp#4178)
* Update databases.md Fix typo and mysql commands * Run prettier * Prettier removes ; at the end of mysql commands * Use sql highlight instead of bash --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent 77d4160 commit 114bf4b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

docs/docs/server-administration/databases.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ v-list-database-hosts
1919

2020
For security reasons, we have decided to disable this option. Please use `https://host.domain.tld/phpmyadmin/` instead.
2121

22-
## How to create PhpMyAdmin root user creditials
22+
## How to create PhpMyAdmin root user credentials
2323

24-
Replace `myrootusername` & `myrootusername_password` with preferred creditials:
24+
Replace `myrootusername` & `myrootusername_password` with preferred credentials:
2525

2626
```bash
2727
mysql -uroot
28-
mysql > CREATE USER 'myrootusername'@'localhost' IDENTIFIED BY 'myrootusername_password'
29-
mysql > GRANT ALL PRIVILEGES ON *.* TO 'myrootusername'@'localhost' WITH GRANT OPTION
30-
mysql > FLUSH PRIVILEGES
28+
```
29+
30+
```sql
31+
CREATE USER 'myrootusername'@'localhost' IDENTIFIED BY 'myrootusername_password';
32+
GRANT ALL PRIVILEGES ON *.* TO 'myrootusername'@'localhost' WITH GRANT OPTION;
33+
FLUSH PRIVILEGES;
34+
QUIT;
3135
```
3236

3337
## How can I enable access to `http://ip/phpmyadmin/`

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"lightningcss": "1.22.1",
4242
"lint-staged": "15.1.0",
4343
"markdownlint-cli2": "0.11.0",
44-
"prettier": "3.1.0",
44+
"prettier": "^3.1.0",
4545
"prettier-plugin-nginx": "1.0.3",
4646
"prettier-plugin-sh": "0.13.1",
4747
"prettier-plugin-sql": "0.16.0",

0 commit comments

Comments
 (0)