When using MAMP, you may want to upgrade the version of phpMyAdmin. Or for example, after upgrading my MAMP version of PHP, phpMyAdmin started display a lot of PHP warnings.
These are the steps to upgrade phpMyAdmin:
-
Download the dsired version of phpMyAdmin.
-
Extract the files and give the folder a nice clean name. I renamed my folder from
phpMyAdmin-5.2.0-all-languagestophpmMyAdmin5. -
Move your
phpMyAdmin5folder to/Applications/MAMP/bin/phpMyAdmin5/. -
Inside the
phpMyAdmin5folder, create a copy of theconfig.sample.inc.phpand name itconfig.inc.php. Update the database connection information. I updated mine to:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = '8889';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;-
Open the Apache
httpd.conf. On my system is was located in/Applications/MAMP/conf/apache/httpd.conf. -
Find the existing alias for
/phpmyadminand add a new Alias for/phpMyAdmin5:
Alias /phpMyAdmin5 "/Applications/MAMP/bin/phpMyAdmin5"
Alias /phpmyadmin5 "/Applications/MAMP/bin/phpMyAdmin5"
<Directory "/Applications/MAMP/bin/phpMyAdmin5">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
- Restart Apache and the open the new phpMyAdmin tool in your browser using the new alias:
http://localhost:8888/phpMyAdmin5.

Thx to your method ! only have to update few things to make it functionnal for my case.
actualisation 2025: update from 5.1.5 to 5.2.2, with MAMPRO 5
Extract from the archive to folder:

C:\Users\Public\Documents\Appsolute\MAMPPRO\phpMyAdmin522Update Apache config file here :
C:\Users\Public\Documents\Appsolute\MAMPPRO\conf\httpd.confUpdate phpMyAdmin config file here :
C:\Users\Public\Documents\Appsolute\MAMPPRO\phpMyAdmin522\config.inc.phpReboot Apache and done !