[phpmyadmin] http://localhost/phpMyAdmin/ unable to connect

I installed XAMPP (Apache, PHP, MYSQL) in my computer C:\xampp. When I tried to start phpMyAdmin from my web browser with http: followed by //localhost/phpMyAdmin/ as address, I got "Unable to connect" error. I searched stackoverflow and found that someone else tried the same thing but got different error. Also, I would like to know how to open a .php file on local computer in web browser. Thank you.

This question is related to phpmyadmin localhost

The answer is


Your web server isn't running! You need to find the XAMPP control panel and start the web server up.

Of course, you might find other problems after that, but this is the first step.


You dont start phpmyadmin from your webbrowser. When you want to start PHPMyAdmin you have to do so from the XAMPP control-panel. When you've started phpmyadmin from your control-panel you can access it from the web-browser.


http://localhost:(port number of phpmyadmin)/phpmyadmin/

For example: http://localhost:8080/phpmyadmin/

It works great!


XAMPP by default uses http://localhost/phpmyadmin

It also requires you start both Apache and MySQL from the control panel (or as a service).

In the XAMPP Control Panel, clicking [ Admin ] on the MySQL line will open your default browser at the configured URL for the phpMyAdmin application.

If you get a phpMyAdmin error stating "Cannot connect: invalid settings." You will need to make sure your MySQL config file has a matching port for server and client. If it is not the standard 3306 port, you will also need to change your phpMyAdmin config file under apache (config.inc.php) to meet the new port settings. (127.0.0.1 becomes 127.0.0.1:<port>)


Try : http://localhost/phpmyadmin/

Use lowercase letters and try again


Try: localhost:8080/phpmyadmin/