[resolved] MySQL Socket

[resolved] MySQL Socket

AH-DominicAH-Dominic Member
edited June 2012 in Help

[[email protected] mysqld]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

The socket file doesn't exist, and when trying to start MySQL, I receive "MySQL Daemon cannot start".

Any idea why? I've tried removing/reinstalling MySQL but still getting that.

Astounding Host - Budget VPS's with excellent performance

Comments

  • netomxnetomx Member

    @dominicl said: '/var/lib/mysql/mysql.sock' (2)

    Do you have MySQL SERVER installed?

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox
    It was just a misunderstanding
  • Yes. mysql-server is installed

    Astounding Host - Budget VPS's with excellent performance
  • vedranvedran Member

    Try to start mysqld manually (just type mysqld), it should either start or give you a reason why it won't start. Or look at your logs

  • netomxnetomx Member

    try

    service mysqld start

    if not, change mysql for mysql or mysql-server

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox
    It was just a misunderstanding
  • [[email protected] mysqld]# mysqld -bash: mysqld: command not found

    [[email protected] mysqld]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    Astounding Host - Budget VPS's with excellent performance
  • [[email protected] mysqld]# service mysqld start MySQL Daemon failed to start. Starting mysqld: [FAILED]

    Astounding Host - Budget VPS's with excellent performance
  • MaouniqueMaounique Member, Provider

    look in it's log, it usually says what was wrong. M

    If privacy is outlawed, only outlaws will have privacy.

  • netomxnetomx Member
    edited June 2012

    @dominicl said: Starting mysqld: [FAILED]

    check the mysql logs, in /var/log

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox
    It was just a misunderstanding
  • Thanks, can be closed now..

    Astounding Host - Budget VPS's with excellent performance
  • yomeroyomero Member
    Expand: Thanks, can be closed now..

    LOL? So what was the flaw???

  • nabonabo Member
    edited June 2012

    @yomero said: LOL?

    Well, there are guys eating the meal without paying afterwards. And there are guys asking for help and others free time and not saying thanks and telling what helped to solve the situation.

    "Kids, you tried your best and failed miserably. The lesson learned is: never try."

  • yomeroyomero Member

    @vedran said: xkcd.com/979/

    Hahaha! Wonderful...

    Thanked by 1netomx
  • joepie91joepie91 Member, Provider

    @dominicl said: Thanks, can be closed now..

    It's pretty rude to simply say 'it's fixed', and not elaborate on what the issue was.

    Currently offering Node.js code review, tutoring and advice! http://cryto.net/~joepie91/code-review.html
    Appreciate my posts/software/guides? Donate (PayPal/Bitcoin): http://cryto.net/~joepie91/donate.html | irc.freenode.net #lowendbox

  • Alright, alright sorry. Was an incompatibility issue, on my part.

    Astounding Host - Budget VPS's with excellent performance
  • netomxnetomx Member

    @dominicl said: Alright, alright sorry. Was an incompatibility issue, on my part.

    as?

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox
    It was just a misunderstanding
    Thanked by 1yomero
Sign In or Register to comment.