Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Subject: Re: Please help to solve a serios problem

Subject: Re: Please help to solve a serios problem

2007-11-06       - By Ali Nebi

 Back
On Tue, 2007-11-06 at 09:32 -0600, hwigoda@(protected) wrote:
> i believe you need to have root create the file /var/lib/mysql/mysql.sock
> and then make it readable and writable by the user that owns mysql.
>
> You can make that same file owner by the user that runs mysql.
>
>
>
>
> -- --Original Message-- --
> >From: Ali Nebi <anebi@(protected)>
> >Sent: Nov 6, 2007 9:24 AM
> >To: mysql@(protected)
> >Subject: Please help to solve a serios problem
> >
> >Hi, i need of help for a serios problem.
> >
> >We have installed mysql 5 and we are using InnoDB engine. OS is CentOS
> >5, x86.
> >
> >Our problem is this.
> >We get this message in the log:
> >
> >
> >ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> >'/var/lib/mysql/mysql.sock' (111)
> >ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> >'/var/lib/mysql/mysql.sock' (111)
> >
> >The problem is that mysql make recovering the database, we are
> >restarting whole server and it crash again. It continue to crash. We
> >tried to recover manually database, but it continue to crash. What we
> >can do to solve this problem?
> >
> >We need to solve this problem urgently.
> >
> >Thanks in advanced!
> >
> >Regards, Ali Nebi!
> >
> >
> >--
> >MySQL General Mailing List
> >For list archives: http://lists.mysql.com/mysql
> >To unsubscribe:    http://lists.mysql.com/mysql?unsub=hwigoda@(protected)
> >
>

This socket file is created automatically when i run mysql by this
way: /etc/init.d/mysql start.
The file has these permissions set. I think this is ok, problem is
something different i think, but i don't know where.

srwxrwxrwx  mysql mysql system_u:object_r:mysqld_var_run_t mysql.sock




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)