Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6883745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:25:17+00:00 2026-05-27T05:25:17+00:00

I have to modify my site’s database tables but when I run ‘phpMyAdmin’ (I’m

  • 0

I have to modify my site’s database tables but when I run
‘phpMyAdmin’ (I’m using Xampp on my Windows Vista development laptop btw) I get

Error MySQL said: #2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)
Connection for controluser as defined in your configuration failed.

So in reading here on SO I changed the file c:\xampp\phpMyAdmin\config_inc.php, the line of code

  $cfg['Servers'][$i]['host'] = 'localhost';

was changed to

  $cfg['Servers'][$i]['host'] = '127.0.0.1';

and I need to have my sockets connection working for the database, I read here
that it means I’m only using tcp/ip and not sockets but my site worked FINE using sockets before.

So I shut down my ‘Norton Security Suite’ in an attempt to stop a firewall protection issue from causing this problem and restarted using ‘localhost’ but get the same error.

What can I do to revert back to using ‘localhost’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:25:17+00:00Added an answer on May 27, 2026 at 5:25 am

    I have to say here one of the most disquieting things has occurred — the generally feared event “I didn’t change anything it just started working.”

    For posterity let me outline how I ‘fixed’ this problem. But before I do that, let me describe the direction of my suspicion and the original problem:

    PROBLEM -> localhost/myphpadmin was failing to resolve when typed into the browser, but 127.0.0.1/phpmyadmin worked OK. I needed to use phpMyAdmin to work with one of my web site’s database. When I clicked on ‘Admin’ next to my Apache start/stop button on the Xampp control panel, the ‘Xampp for Windows’ appeared in the browser just fine, but clicking on ‘phpMyAdmin’ under ‘Tools’ on that page led to the error message i mentioned above. However if I typed 127.0.0.1/phpmyadmin in any browser window, phpMyAdmin started up fine.

    Since MySQL ‘listens’ on Port 3306 (for you Xampp users, you will see this when you press the ‘Start’ button next to MySQL on the Xampp Control Panel), and since using the ‘localhost/phpMyAdmin’ name should resolve to a connection on that port, I wondered if my ‘localhost’ name resolution was the problem, since MySQL was successfully starting on that port as I could see in the Xampp Control Panel Application. Starting phpMyAdmin off of localhost should have succeeded — MySQL was running.
    So it was seemingly not an issue with, say, another program ‘stealing’ port 3306 ahead of MySQL– adding ‘phpmyadmin’ to ‘localhost’ was not the problem as MySQL had successfully started.

    To investigate where the resolving of ‘localhost’ to a connection I followed the advice given to check my HOSTS file at c:\windows\system32\drivers\etc and found the entries in my comment above in the HOSTS file (“127.0.0.1 localhost” and “::1 localhost”). Nothing to see here, the HOSTS file was in fact present and looked fine.

    I then altered the file c:\xampp\phpMyAdmin\config.inc.php, to change the line of code

      $cfg['Servers'][$i]['host'] = 'localhost';
    

    to
    $cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’;

    and that band-aid allowed me to run phpMyAdmin but did NOT explain why localhost/phpMyAdmin would not resolve successfully and I yearned to change this config.inc.php back to ‘localhost’ and not ‘127.0.0.1’. (This morning I did just that).

    I also navigated to the PhpMyAdmin home page site by clicking “Official Homepage” on the lower-right side of the window of PhpMyAdmin to see if there was a ‘known issue’ and found nothing.

    One suggestion was (“maybe a firewall blocking mysql port”)
    at The server is not responding (or the local MySQL server's socket is not correctly configured)

    So I stopped my firewall temporarily (Norton Security Suite) — no change.

    Throughout the above process I restarted my computer whenever I changed something.
    So at around midnight I gave up and went to sleep.

    And now, as if by magic, this morning I can now start the MySQL service from the Xampp control panel then clicking ‘Admin’ next to the Apache start/stop and selecting ‘myPhpAdmin’ link on the Xampp For Windows screen suddenly works fine. As you’ll see in my description above, I changed nothing permanently — I only stopped my firewall for a few minutes and made a temporary change to the ‘host’ entry in \xampp\phpMyAdmin\config.inc.php — and this morning, with the firewall back up and the temporary change to ‘host’ being restored to ‘localhost’ in config.inc.php — all is well. Very disquieting. While you can dust off an electrical connection and fix things, the bit of ‘dusting’ I did above changed nothing that I’m aware of. I can now type localhost/myphpadmin in both Firefox and IE and phpmyadmin successfully launches, so I can work on my site’s database.

    If anyone has any ideas what sort of ‘dusting off’ above achieved I’d like to know, I don’t like spurious problems that are ‘fixed’ like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to modify Rprofile.site file under Windows 7 R-2.11.1 using Notepad++ editor changing
I've got an MS-Access database stored in a folder (yes, I have 'Modify' permissions
I have run into a problem trying to modify a form I myself have
I have a site and i implemented ssl there. but when i browse it,
Here is what I have <img src=http://some.site.com/v/b/image-name/_thumb_100x100.jpg> I'm trying to modify the src by
I have an existing site build in c# 3.5 using asp.net mvc 1. There
I have run the following code in this page RsyntaxTextArea using Java and i
I used to have a WORKING database for my ASP.NET site, up until the
I have to modify a WPF application written in C# that displays a complex
I have to modify some code in a application I am working on that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.