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 8367917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:16:11+00:00 2026-06-09T13:16:11+00:00

I just installed MySQL 5.5.27 on WinXP. When I open a command prompt (Start

  • 0

I just installed MySQL 5.5.27 on WinXP. When I open a command prompt (Start -> Run, and type “cmd”), I can access MySQL by running “mysql -u root -p”. However, when I open a Cygwin terminal and try the same thing, I get this error

$ mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql.sock' (2)

Indeed, there is no “/var/run/mysql.sock” file.

  • 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-06-09T13:16:12+00:00Added an answer on June 9, 2026 at 1:16 pm

    If you specify the host on the command line, this issue should go away:

    mysql -u root -p -h 127.0.0.1
    

    You can also create a my.ini that mysql will use:

    echo [client] >c:\my.ini
    echo user=root >>c:\my.ini
    echo host=127.0.0.1 >>c:\my.ini
    

    Then you can just type:

    mysql -p
    

    You can even add the password:

    echo password="abracadabra" >>c:\my.ini
    

    Then, just type:

    mysql
    

    and you’re in!

    See also https://serverfault.com/questions/337818/how-to-force-mysql-to-connect-by-tcp-instead-of-a-unix-socket

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

Sidebar

Related Questions

I just installed MySQL on Ubuntu and the root user can't log in :)
Just installed Django (with easy_install) and created a project, but can't get mysql to
I just installed mysql on a mac running 10.6. The mysql version is 5.1.56.
I just start reading Sun's JDBC tutorial. I installed MySQL Connector/J and was just
I've just installed xampp, and am using command line to write mySQL. I am
I just installed ruby on rails on windows. install mysql and created a new
I was just looking at the MySql database created by drupal after I installed
Just installed EE everything seems clear however I can't seem to find a solution
I'm working on Windows with Apache and PHP. I just installed MySQL, configured it,
I've just installed the latest production release of MySQL (64-bit) on my Windows 7

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.