I use php -S localhost:8000
command in git-bash in the path of project for running php.
I need to have a look of my tables. In phpmyadmin for example or any other ways.
Please help me. How can I do that?
thanks
Asked
Active
Viewed 1,300 times
-2
-
1PHP doesn't come bundled with a database, that's why XAMPP/LAMP is a nice bundle for beginners (it has Apache and a database in its stack). If you only use PHP individually, you need to install a MySQL/MariaDB server instance separately – Bruno Pérel Oct 19 '20 at 08:41
-
Why not use a docker-based setup (like ddev)? This helps you bundling all depending services in the correct versions – Nico Haase Oct 21 '20 at 06:45
1 Answers
1
You can access MySQL through Client CLI (command line), or any MySQL client (datagrip (not free), dbforge, heidisql)... PHPMyAdmin is just a web MySQL Client.
If you want to access your database through PHPMyAdmin you need a web server. You can run the command you mentionned php -S localhost:8000
inside the PHPMyAdmin source directory (source location depend on your installation) to run the PHP web server.

magrigry
- 405
- 2
- 8