• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question How to configure phpMyAdmin config.inc.php properly to connect to other DB servers in Docker container

milanbx

New Pleskian
Server operating system version
Debian 12.11
Plesk version and microupdate number
Plesk Obsidian v18.0.69_build1800250502.08
Hi, I am running Plesk Obsidian v18.0.69_build1800250502.08 on Debian 12.11 with Docker extension. And I would like to use Plesk phpMyAdmin to connect to DB servers in my Docker containers. I have found in docs, where to find phpMyAdmin installation i Plesk (`/usr/local/psa/phpMyAdmin/`) and that I have to create the `config.inc.php` file. I have don so and its content is as following:
```php
<?php
/**
* Servers configuration
* $cfg['Servers'][1] is configured by Plesk. Do not use $cfg['Servers'][0].
*/
$i = 2;
/* Authentication type */
// $cfg['Servers'][$i]['auth_type'] = 'cookie'; // cookie is default => commented out
/* Server parameters */
// $cfg['Servers'][$i]['host'] = 'localhost'; // localhost is default => commented out

$cfg['Servers'][$i]['port'] = '5002';

// $cfg['Servers'][$i]['AllowNoPassword'] = false; // false is default => commented out
```
If I use `mysql -P 5002 -u root -p`, I can connect to the database properly.
But if I try the sam from phpMyAdmin, I get followign error: mysqli::real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'

Any ideas, what to add to the configuration?
Thanks.
 
Back
Top