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

  • Home
  • SEARCH
  • 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 7946427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:08:58+00:00 2026-06-04T01:08:58+00:00

Hi to all commandline/mysql experts, I am having a error when typing the comman

  • 0

Hi to all commandline/mysql experts,

I am having a error when typing the comman “mysql -v”

I got this:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

What I am thinking is I need to update the code where /var/run/mysqld/mysqld.sock is located then point it to somewhere that is exists or alternative is to create a file mysqld.sock and place it in the directory /var/run/mysqld/.

But I don’t know where to start. :C

Any idea will be much appriciated.

Thank you.

  • 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-04T01:09:00+00:00Added an answer on June 4, 2026 at 1:09 am

    First off:

    1. Are you trying to connect to a MySQL server running in your local machine? Check whether it’s running with something like

      $> ps -efl | grep mysql | grep -v “grep”

    2. Is it working and still you can’t connect? Well, then you can check the socks and stuff in the file /etc/my.cnf

    3. Are you trying to connect in a server not in your local page? Then you have to tell mysql where to (say you try to connect to a server located in 111.111.111.111:

      $> mysql -h 111.111.111.111

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

Sidebar

Related Questions

So I can connect with (obviously I replaced all the real values) mysql -u
I have this error Mysql::Error: Table 'table_name' is marked as crashed and should be
I have been trying to connect to mysql all evening using PHP. I know
I have a MySQL instance running on a Debian server and I can connect
From Java, is it possible to get the complete commandline with all arguments that
The Cassandra command-line utility sstablekeys can be used to extract all defined row keys
All I need this for is strcpy(). I want to see whether the first
Is there a command line script/tool I can use to administer a mysql database.
Can You Import an Excel File to a MySQL Database using phpMyAdmin? I am
I imported a table from a CSV file into MySQL using this query: LOAD

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.