Why am I unable to connect to MariaDB using phpMyAdmin?
Last modified date:
2023-07-28
Applicable Products
- MariaDB 10
- phpMyAdmin 4.9.11.0 (or earlier) on QTS 5.0.x
- phpMyAdmin 5.2.1.0 (or earlier) on QTS 5.1.x
Root Cause
MariaDB 10 is not a built-in application; therefore, you must edit the phpMyAdmin configuration file (config.inc.php) over smb with Windows to access MariaDB 10.
Solution
- Log in to QTS as an administrator.
- Open App Center.
- Install phpMyAdmin and MariaDB 10.
- Configure MariaDB 10 settings.
- Open MariaDB10.
- Go to Account and Database.
- Next to Root password, click Reset.NoteThe application will restart after resetting the root password. Resetting the root password does not result in data loss.
- Configure the phpMyAdmin settings.
- Connect to the Web shared folder as an administrator via an SMB connection.
- Go to Web\phpMyAdmin\.
- Open the config.inc.php file using a text editor.
- Locate the Servers configuration section.
/** * 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; - Delete the Servers configuration script from the file.
- Enter the following script.
/** * 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; - Save the file.
- Close the phpMyAdmin app.
- Reopen the phpMyAdmin app.
- Select MariaDB 5 or MariaDB 10.

- Enter the username and password.
- Click Go.
You can now connect to MariaDB using phpMyAdmin.