Hello,

I have the following error whenever I try to run phpmyadmin:

Welcome to phpMyAdmin

Error

MySQL said: Documentation

2002 - No connection could be made because the target machine actively refused it.

The server is not responding (or the local server's socket is not correctly configured).
Connection for controluser as defined in your configuration failed.

How to fix it?

Recommended Answers

All 4 Replies

Member Avatar for diafol

Is MySQL running? What does your XAMPP control panel show?

Yes, mysql is running.

I can see the XAMPP Control Panel, but not the phpmyadmin.

Member Avatar for diafol

phpmyadmin is not listed in the xampp control panel.
Can you access mysql from a php script?

I mean I cannot see phpmyadmin by typing: localhost/phpmyadmin because this error appears:

Welcome to phpMyAdmin

Error

MySQL said: Documentation
2002 - No connection could be made because the target machine actively refused it.

I do not know if I can access mysql with a php script. I think I can since I still can view my webpage (without the database).

Well, I need to test it first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.