Mafiree » Blog Archive » ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’

Mafiree

Intensely Interested in MySQL

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’

When I tried to connect mysqld server, I got this error.

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’

1. Check whether mysqld server is running or not, using the below command

ps -ef | grep mysql

If mysqld is running, then check the socket path in the .cnf file and give the correct path when connecting.

2. Check the file permission of that socket file. If the file doesn’t have mysql permission, just change permission to mysql using the below command.

chown mysql:mysql sockfile_path

3. If the socket file is missing then you have to restart your mysqld server.

9 Responses to “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’”

  1. chandru Says:

    There can be few more reasons for this issue.
    1. There is already some instance of MySQL running and the new instance is not able to update/start with the same socket file name.

    “101012 20:21:30 [ERROR] Do you already have another mysqld server
    running on socket: /var/run/mysqld/mysqld.sock ?”

    2. The folder path as mentioned in cnf does not exist.
    3. The folder does not have ownership for mysql user (if you are starting as mysql user)

  2. james Says:

    enormous@forte.garnet” rel=”nofollow”>.…

    tnx for info!!…

  3. kent Says:

    bunched@unending.unsaturated” rel=”nofollow”>.…

    tnx for info!!…

  4. Brett Says:

    tipsy@thomas.foreami” rel=”nofollow”>.…

    thanks!!…

  5. Maurice Says:

    reverie@summing.emptied” rel=”nofollow”>.…

    good….

  6. doug Says:

    mirth@wooded.bluing” rel=”nofollow”>.…

    спс….

  7. louis Says:

    giggle@crannies.testicle” rel=”nofollow”>.…

    спс за инфу!…

  8. walter Says:

    ginners@hostelries.forecasting” rel=”nofollow”>.…

    good!…

  9. Antonio Says:

    daring@ches.chiding” rel=”nofollow”>.…

    thanks!!…

Leave a Reply

You must be logged in to post a comment.

  • do you need to take everyday
  • official site virus
  • what effects does have on women
  • online apotheke
  • cause sweating
  • is safe in pregnancy
  • and pain relievers
  • alcohol overdose
  • dose for missed abortion
  • birth control effectiveness
  • does cause increased urination
  • 2675107535
  • painful ovulation after
  • liver problems
  • is there a generic for
  • 1 spray
  • tax services sdn bhd
  • pill description
  • liquid pediatric dose
  • insomnia baby
  • 24 hour non drowsy side effects
  • obat apa
  • does prevent spreading genital herpes
  • rust colored urine
  • interactions
  • interaction between zoloft
  • okay take 20 mg
  • allergic reaction
  • y pitocin
  • fungsi obat forte
  • medicine side effect
  • walgreens
  • dose for bipolar 2
  • tours phils. inc contact number
  • lawsuit ms
  • black label
  • side effects high blood pressure
  • compare and pristiq
  • do you need prescription get
  • combination
  • from canada
  • business registration forms
  • cheap blog
  • para que es medicina
  • constipation
  • will get you high
  • patient assistance
  • cheap injection
  • pregnancy risk
  • po iv
  • ilaA ne iAYe yarar
  • fungsi ubat
  • impulsive behavior
  • can you mix with yogurt
  • and alcohol interaction
  • generic in us
  • and bruising
  • signs allergic reaction
  • drug screen
  • energy trading
  • test embarazo despues
  • preAo medicamento er 500mg
  • diaper rash
  • side effects quitting
  • danger
  • didn't work
  • interaction
  • best sunscreen use while
  • uses and side effects
  • t1\/2
  • 360 copay reduction offer
  • increase hdl
  • 15 mg ml
  • 1 follicle on
  • 500 mg no prescription
  • picture
  • epinephrine breastfeeding
  • allergy ancef
  • 1685476454
  • better than pct
  • can take ambien
  • antibiotic when pregnant
  • fda warning
  • modutab 4 mg
  • dosage for rabbits
  • valproic acid equivalence
  • potentiate opiates
  • gel dosing
  • eating disorders
  • can you drink alcohol with
  • costco
  • weight loss bodybuilding
  • site fiable pour acheter
  • for fibromyalgia
  • while trying to conceive
  • promethazine and interaction
  • e ciclo mestruale ritardo
  • switching xarelto
  • e
  • zwanger worden
  • can cause depression
  • infertility
  • per tube
  • brand name otc
  • kao lek
  • ocd anxiety
  • 300 mg 24 hours
  • genericos intercambiables
  • sprinkles picture
  • pictures
  • empty stomach
  • drug interaction
  • and sun rash
  • brand name
  • cause yeast infection
  • risks taking
  • l abilitA via
  • tablets purpose
  • protocol
  • assistance program
  • dosage relenza
  • muscle twitching
  • nasal spray side effects warnings
  • headache relief
  • vs infant reflux
  • buy online no prescription
  • difference between pristiq
  • how long does it take for to begin working
  • prostate
  • generico precio en mexico
  • do need prescription buy online
  • quinolones interaction
  • is a nri
  • flu like symptoms
  • mechanism of action
  • generic available uk
  • pradaxa compared to
  • product information
  • can you take ear infection
  • interaction between iron
  • and interaction
  • can cause breast cancer
  • romania
  • cipralex seroplex
  • vs vs
  • what to do if doesnt work
  • over counter substitute
  • long will stay your system
  • wellbutrin
  • suicidal tendencies
  • e a face da terra
  • is good for
  • prescription dose
  • how for morning sickness
  • 5 side effects
  • ver bula
  • medicine coupons
  • how long for bare metal stent
  • generic side effects
  • weight gain mechanism
  • how to buy no prescription
  • taking and drinking alcohol
  • uses and side effects
  • and interaction
  • 2.5 mg anxiety
  • shedding 6 mois
  • jarabe para que sirve
  • side effects webmd
  • mims philippines
  • 300 mg
  • o haloperidol
  • psoriasis arthritis
  • use puffer
  • craving alcohol
  • or for women
  • whole bag isnt working
  • discount
  • 2000 mg day
  • dosage chart for children's
  • 120 mg 84 capsules
  • lips still chapped after
  • during first trimester
  • good bad funny
  • thuoc gia bao nhieu
  • will generic
  • can cause insomnia
  • effects of drinking alcohol while taking
  • versus floxacin
  • canadian pharmacy generic
  • buy shampoo malaysia
  • drug info
  • for adhd
  • is prescribed for what
  • y despues legrado
  • vertigo
  • compare and
  • neulasta
  • brand names
  • e
  • para q es el
  • fibromyalgia reviews
  • can i take and together
  • efficacy
  • oxycodone
  • much does 20 mg cost
  • 2 mg efectos secundarios
  • side effects drug interactions
  • evohaler asthma inhaler
  • pm for anxiety
  • vs cost
  • how long to take after steroid cycle
  • is a controlled substance
  • sales 2008
  • best place buy uk
  • salicylic acid while on
  • mucus throat
  • penicillin allergy
  • taking dexilant
  • al cuanto tiempo hace efecto el
  • d 24 canada
  • safe take while pregnant
  • many days uti
  • interaction medicamenteuse
  • vs
  • duo nausea
  • side effects chest pain
  • hair growth side effects
  • melt pil
  • side effects muscle pain
  • xanax interaction
  • aleve advil comparison
  • c quoi
  • o singura aplicare
  • t topical solution
  • iv
  • okay to take and together
  • molluscum kids
  • will 50 mg get you high
  • litigation news
  • stopping suddenly
  • baby side effects
  • food poisoning
  • false positive amphetamine
  • nausea
  • is a time release
  • concerta y
  • exercise
  • weight loss after going off
  • dose children
  • para acne
  • abuse
  • and heparin drip
  • capsules alcohol
  • dosis 10 semanas embarazo
  • medicina para que sirve
  • cycle
  • from canada
  • conversion chart
  • uses
  • while breastfeeding
  • can you buy online
  • kidney stones side effects
  • best time bd
  • after 10 days
  • strengths available
  • is safe during pregnancy
  • can u drink alcohol while on
  • vs equivalent
  • statin interaction
  • best price
  • compare and
  • compare and
  • can you buy over the counter
  • 250 suspension
  • bleeding during pregnancy
  • b complex
  • shampoo can't find
  • 40 mg dosage
  • 200 mg effects
  • lowest dose of
  • is a maoi
  • spa riu playa del carmen
  • commercial husband number 2
  • ds bartonella
  • bula
  • tramadol and interactions
  • sodium classified
  • is a generic
  • typical cycle
  • combination
  • will lower blood pressure
  • side effects in children hyperactivity
  • fluidasa gotas
  • interaction with alcohol
  • xr release mechanism
  • can you take for more than 6 months
  • is better than
  • posologia
  • icd therapy
  • xl breastfeeding
  • blood levels
  • stopped working bipolar
  • can you take 2 day
  • drug interactions between
  • can use expired inhaler
  • zayAflama
  • xr and libido
  • what is ds 800-160 tab used for
  • lp 200 mg cp
  • for under 5
  • vs vs
  • what does it do
  • e diabete
  • does slow down metabolism
  • cual es mejor o
  • dosage for pneumonia
  • vs bioidentical hormones
  • can you exercise while taking
  • and
  • can take
  • y la sexualidad
  • alcohol allergy
  • and combination
  • chronic kidney disease
  • will help kidney stones
  • properties durban
  • h pylori
  • zydis 5mg
  • hives side effects
  • dosing renal failure
  • tablets gout
  • oftalmico pomata
  • highest recommended dose
  • withdrawal extreme fatigue
  • keramag nr.1 plan wand-wc flachspA?ler
  • mims philippines
  • maximum dosage daily
  • jelly 2 hydrochloride
  • hair loss side effect
  • shareholder structure
  • pseudomonas dosing
  • adverse side-effects of
  • 2.5 mg cost
  • 12.5 mg diclofenac
  • can cause kidney stones
  • cheapest place buy
  • to treat binge eating
  • how long takes to work
  • red c200
  • wellbutrin combination
  • mydriasis
  • sugar levels
  • maximum dosage
  • dosage for one year old
  • et line
  • board
  • drug interactions between and
  • i alkohol
  • can you take
  • side effects vivid dreams
  • klonopin otc interaction
  • potentiate opiates
  • ask a patient
  • 4 mature follicles with
  • generic name
  • directions
  • headache side effect
  • heart failure
  • 6069073458
  • do i need if i already ovulate
  • at jock itch review
  • progesterone supplements after
  • inactive ingredients
  • aspirin together
  • para que sirve 400 mg
  • uti
  • vs and
  • joint pain relief
  • tingling feet
  • children dosage
  • half 80 mg anxiety
  • illegal buy online us
  • dose for weight
  • is used for staph infections
  • medicine used
  • cream for jock itch
  • green starter pack dosing
  • dose frequency
  • buy jelly
  • does cause itching
  • does cause hair shedding
  • cream for warts in children
  • long term use side effects
  • taking gastritis
  • 100 mg nedir
  • constipation miralax
  • epilepsy
  • and compared
  • bfp dpo
  • why was discontinued
  • ?>