Varför går det inte att ansluta till MariaDB genom phpMyAdmin?
Senaste ändringsdatum:
2023-07-28
Berörda produkter
- MariaDB 10
- phpMyAdmin 4.9.11.0 (eller tidigare) på QTS 5.0.x
- phpMyAdmin 5.2.1.0 (eller tidigare) på QTS 5.1.x
Rotorsak
Eftersom MariaDB 10 inte är inbyggt måste du redigera konfigurationsfilen för phpMyAdmin (config.inc.php) över smb med Windows för åtkomst till MariaDB 10.
Lösning
- Logga in på QTS som administratör.
- Öppna App Center.
- Installera phpMyAdmin och MariaDB 10.
- Konfigurera inställningarna för MariaDB 10.
- Öppna MariaDB10.
- Öppna Konto och databas.
- Klicka på Återgå intill Rotlösenord.Obs!Programmet startar om när rotlösenordet återställs. Återställning av rotlösenordet orsakar inte dataförlust.
- Konfigurera inställningarna för phpMyAdmin.
- Anslut till den delade mappen Web som administratör genom en SMB-anslutning.
- Gå till Web\phpMyAdmin\.
- Öppna filen config.inc.php med en textredigerare.
- Hitta avsnittet Servers configuration (Serverkonfiguration).
/** * Servers configuration */ $i = 0; /** * First server */ $i++; /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['AllowNoPassword'] = false; - Radera skriptet Servers configuration från filen.
- Ange följande skript.
/** * Servers configuration */ $i = 0; /** * First server */ $i++; /* Authentication type */ $cfg['Servers'][$i]['verbose'] = 'MariaDB 5'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['AllowNoPassword'] = false; /** * Second server */ $i++; /* Authentication type */ $cfg['Servers'][$i]['verbose'] = 'MariaDB 10'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ $cfg['Servers'][$i]['socket'] = '/var/run/mariadb10.sock'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['AllowNoPassword'] = false; - Spara filen.
- Stäng appen phpMyAdmin.
- Öppna appen phpMyAdmin på nytt.
- Välj MariaDB 5 eller MariaDB 10.

- Ange användarnamn och lösenord.
- Klicka på Go (Kör).
Nu går det att ansluta till VPN.