Re: MySQL server socket problem

Nick Rout <[email protected]> Wed, 14 Dec 2011 17:18:46 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <CALmzFLZpDdG1r0vfR9UvqBNp37u44Wi7xnfx9oODtkmiZDWvQQ@mail.gmail.com>
On Wed, Dec 14, 2011 at 5:03 PM, John Reid <[email protected]> wrote:
> Having briefly run MySQL successfully from a C program, the next time I
> booted up mysqld failed
>
> Relevant syslog info was:
>
> =A0 =A0 =A0 =A0error: 'Can't connect to local MySQL server through socket
> '/var/run/mysqld/mysqld.sock' (2)'
> =A0 =A0 =A0 =A0Check that mysqld is running and that the socket:
> '/var/run/mysqld/mysqld.sock' exists!
>
> (mysqld.sock does not exist)
>
> Checked this out on the Web and found
>
> =A0 =A0 =A0 =A0This bug can be fixed by:
> =A0 =A0 =A0 =A01) Adding a line that says
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0include "/etc/bind/rndc.key";
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0to /etc/bind/named.conf
> =A0 =A0 =A0 =A0and then
> =A0 =A0 =A0 =A02) Making /etc/bind/rndc.key be owner root:bind mode 640
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0chown root:bind /etc/bind/rndc.key
>
> I did this but it did not fix the problem.
>
> Any ideas?

Is mysqld running?

ps ax|grep mysqld

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug