Skip to content

Commit 8e8371f

Browse files
ev0netjaapmarcus
andauthored
phpmyadmin root user add instructions + phpmyadmin button (hestiacp#4016)
* phpmyadmin root user add instructions + phpmyadmin button phpmyadmin root user add instructions per forum post: https://forum.hestiacp.com/t/mysqli-real-connect-hy000-1045-access-denied-for-user-root-localhost-using-password-yes/11029 And clarification of phpmyadmin primary button per forum post: https://forum.hestiacp.com/t/thank-you-cant-access-phpmyadmin/11050/9 * Fix CI error markdown --------- Co-authored-by: evonet <admin@evonet.app> Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent fd595b5 commit 8e8371f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/docs/server-administration/databases.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ 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
23+
24+
Replace `myrootusername` & `myrootusername_password` with preferred creditials:
25+
26+
```bash
27+
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
31+
```
32+
2233
## How can I enable access to `http://ip/phpmyadmin/`
2334

2435
### For Apache2
@@ -71,6 +82,8 @@ bind-address = "your.server.ip.address"
7182

7283
## PhpMyAdmin Single Sign On
7384

85+
NOTE: PhpMyAdmin Single Sign On enabled only for individual databases. Primary "PhpMyAdmin" button for existing database credintials only.
86+
7487
### Unable to activate phpMyAdmin Single Sign on
7588

7689
Make sure the API is enabled and working properly. Hestia’s PhpMyAdmin Single Sign On function connects over the Hestia API.
@@ -104,7 +117,7 @@ For example:
104117
v-add-database-host mysql db.hestiacp.com root mypassword 500
105118
```
106119

107-
If you want you can setup phpMyAdmin on the host server to allow to connect to the database. Create a copy of `01-localhost` file in /etc/phpmyadmin/conf.d and change:
120+
If you want you can setup phpMyAdmin on the host server to allow to connect to the database. Create a copy of `01-localhost` file in `/etc/phpmyadmin/conf.d` and change:
108121

109122
```php
110123
$cfg["Servers"][$i]["host"] = "localhost";

0 commit comments

Comments
 (0)