Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 233
user3334714 Avatar asked Aug 26 '14 13:08

user3334714


3 Answers

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>)

like image 158
r007kit Avatar answered Oct 01 '22 13:10

r007kit


Try: localhost:8080/phpmyadmin/

like image 32
Sanjeewa Avatar answered Oct 01 '22 12:10

Sanjeewa


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.

like image 30
chiastic-security Avatar answered Oct 01 '22 11:10

chiastic-security