-
Go to the directory where you want to create the project, for example
cd ~ # go to your home directory mkdir phpmyadmin # create a new director for phpmyadmin cd phpmyadmin # go into the directory -
Use Composer to install PhpMyAdmin:
composer create-project phpmyadmin/phpmyadmin:^5.0 . # mind the "dot" at the end! -
Copy the sample config file:
cp config.sample.inc.php config.inc.php -
Start the built-in PHP server to serve the phpmyadmin app:
php -S localhost:8081 -
Go to localhost:8081 to open PhpMyAdmin. Use your MySQL credentials to log in. These are the same as your
DB_USERNAMEandDB_PASSWORDin the.envfile for our HIVSET project. -
When done, press
Ctrl+Cto close down the PHP built-in server.
-
Open the PhpMyAdmin config file
config.inc.php -
Look for these lines:
/* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; -
Replace with:
/* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'db username'; $cfg['Servers'][$i]['password'] = 'db password'; -
Save, start the PHP server again and go to localhost:8081