![](https://seccdn.libravatar.org/avatar/31cd99395e30a53f253916c2227a4e14.jpg?s=120&d=mm&r=g)
On Sunday 23 February 2003 6:43 am, James Hatridge wrote:
Ok, I really stepped on it today. I deleted "mysql.sock". After a few minutes of good southern cussn' I copyed it from another system. [...]
As you've no doubt found out by now, "socket" files aren't normal files. The data they contain is fleeting at best -- the idea is that "some process" is continually reading the file looking for commands or data [your mysql daemon in this case] and once read, the data is removed from the file. When mysql starts up, it is responsible for the creation and management of these "unix socket" or "pipe" files, so I *think* all you need to do after "accidentally" purging the mysql.sock file is simply restart the mysql server. [as root, type "rcmysql restart", but note "mysql" might have a trailing "d" on it, as in "mysqld"] -- Yet another Blog: http://osnut.homelinux.net