Browse Source

phpmyadmin root user add instructions + phpmyadmin button (#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>
ev0net 2 years ago
parent
commit
a7152d657d
1 changed files with 14 additions and 1 deletions
  1. 14 1
      docs/docs/server-administration/databases.md

+ 14 - 1
docs/docs/server-administration/databases.md

@@ -19,6 +19,17 @@ v-list-database-hosts
 
 For security reasons, we have decided to disable this option. Please use `https://host.domain.tld/phpmyadmin/` instead.
 
+## How to create PhpMyAdmin root user creditials
+
+Replace `myrootusername` & `myrootusername_password` with preferred creditials:
+
+```bash
+mysql -uroot
+mysql > CREATE USER 'myrootusername'@'localhost' IDENTIFIED BY 'myrootusername_password'
+mysql > GRANT ALL PRIVILEGES ON *.* TO 'myrootusername'@'localhost' WITH GRANT OPTION
+mysql > FLUSH PRIVILEGES
+```
+
 ## How can I enable access to `http://ip/phpmyadmin/`
 
 ### For Apache2
@@ -71,6 +82,8 @@ bind-address = "your.server.ip.address"
 
 ## PhpMyAdmin Single Sign On
 
+NOTE: PhpMyAdmin Single Sign On enabled only for individual databases. Primary "PhpMyAdmin" button for existing database credintials only.
+
 ### Unable to activate phpMyAdmin Single Sign on
 
 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:
 v-add-database-host mysql db.hestiacp.com root mypassword 500
 ```
 
-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:
+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:
 
 ```php
 $cfg["Servers"][$i]["host"] = "localhost";