Skip to content

Instantly share code, notes, and snippets.

@iturgeon
Last active October 30, 2023 14:06
Show Gist options
  • Save iturgeon/0bf432de45a2f19aeb38e2bbae8a4567 to your computer and use it in GitHub Desktop.
Save iturgeon/0bf432de45a2f19aeb38e2bbae8a4567 to your computer and use it in GitHub Desktop.
How to run phpMyAdmin using the built in php webserver

Running phpMyAdmin localy on the built in php server

  1. make sure you have php 5.3+: run php -v
  2. Download phpmyadmin (github or main website)
  3. In the root directory, copy config.sample.inc.php > config.inc.php
  4. Edit config.inc.php, set $cfg['Servers'][$i]['host'] to the ip address of your mysql server (probably localhost or 127.0.0.1)
  5. In the root phpmyadmin directory run php -S localhost:8080
  6. open in your browser: http://localhost:8080
  7. log in by entering some valid credentials (a user you added or the root user)
@leandroembu
Copy link

Thanks so much ;)

@bksubramanyarao
Copy link

Very useful thanks :+1 : )

@dylzeee
Copy link

dylzeee commented Jul 18, 2020

nice, one, thanks!

@neilmenon
Copy link

neilmenon commented Dec 18, 2020

Awesome, thanks. Had to change the default localhost to 127.0.0.1 on macOS.

@kappa20
Copy link

kappa20 commented Apr 24, 2022

Thank you 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment