How To Connect phpMyAdmin via “http://localhost/phpmyadmin”?

The phpMyAdmin is free software written in PHP in order to manage the MySQL and MariaDB via Web interface or web page. By default, the phpMyAdmin is served via the URL “http://localhost/phpmyadmin” but in some cases, this may not work properly. In this tutorial, we list different ways to open and start a phpMyAdmin web interface.

Install phpMyAdmin and Related Components

First of all, we should install phpMyAdmin and all related components like Apache, MySQL, PHP, etc. There are different packages that provide easy installation for these components called XAMPP, WAMP, or LAMP. WAMP is a Windows installation package for Apache, MySQL, and PHP. LAMP is a Linux installation of Apache MySQL and PHP. The phpMyAdmin does not work without installing all of these components Apache, MySQL, and PHP. The Apache is a web server where it may change with Nginx etc. Also, MySQL is a database server where alternatively the MariaDB can be used.

Open “http://localhost/phpmyadmin”

The default URL address to access phpMyAdmin is “http://localhost/phpmyadmin”. This URL tries to access the URI “/phpmyadmin/” running on the localhost.

Start MySQL Server Service

If we can not access the phpMyAdmin via using the “http://localhost/phpmyadmin” the first thing we should check is the MySQL server service. Also the  “Cannot connect: invalid settings.” error is displayed by the phpMyAdmin web page. Check if the MySQL service is started properly.

Try “http://localhost:8080/phpmyadmin”

In some cases, the phpMyAdmin may run in different port numbers. The default port number for the phpMyAdmin is 80. But for some configurations, it can change to 8080. So in order to open phpMyAdmin properly open the localhost:8080 like below.

http://localhost:8080/phpmyadmin

Leave a Comment