-
If you already installed laravel sail using
sail:installcommand, placeinstall-pmain the root of your laravel project, then open your project in terminal & runphp install-pma. then runsail down && sail up -d, to bring up the newly defined phpmyadmin container. you can access phpmyadmin atlocalhost:8080through browser. username= sail & password= password to access admin panel based on your.envdefinitions -
If you haven't installed laravel sail using
sail:installcommand, runphp install-pma --addin your project directory. then runsail:install& select phpmyadmin along mysql & other required services. thensail up -d
you can restore your original files in case something goes wrong.
backups are created automatically before changing files.
in order to use backups run php install-pma --restore.
You can access phpMyAdmin on a port other than 8080 if not already in use.
to do that run the script like php install-pma --port=8008.
now after bringing up the network using sail up -d,
phpmyadmin is available at localhost:8008
The Default phpMyAdmin image version is 5.2.1. If you want to use a specific version,
run the script with version flag like php install-pma --version=5.0
of course, you can use both flags together like php install-pma --version=5.0 --port=8008