Results 1 to 10 of 14
where can i find the mysql.sock file or how do i make one...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-04-2003 #1Linux User
- Join Date
- Apr 2003
- Location
- TEXAS
- Posts
- 314
what is the mysql.sock file
where can i find the mysql.sock file or how do i make one
- 05-04-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
The mysql.sock is the socket that mysqld creates for programs to connect to. I think it usually is /var/lib/mysql/mysql.sock. At least it is on my system. mysqld automatically creates it upon startup.
- 05-08-2003 #3Just Joined!
- Join Date
- May 2003
- Location
- /var/www/
- Posts
- 23
Sorta off-topic, but what the hell...
Originally Posted by Dolda2000
I had just updated my RedHat 8.0 system with the latest patch, when my MySQL database stopped working. I looked in /var/lib/mysql, and I couldn't find the mysql.sock file. I got kinda stressed, thinking that my databased were f*cked up, but then I rebooted and the .sock file were replaced.
Have no idea, guess it had something to do with the MySQL getting updated or something...
- 05-08-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
You didn't just try "service mysqld restart"? You know, an advantage of Linux/UNIX is that unless you're doing kernel upgrades, you never need to reboot.
- 05-08-2003 #5Just Joined!
- Join Date
- May 2003
- Location
- /var/www/
- Posts
- 23
Thanks for the tip, I'm still learning!
Originally Posted by Dolda2000
- 03-18-2005 #6Just Joined!
- Join Date
- Mar 2005
- Location
- mexico
- Posts
- 1
Solution to lost mysql.sock file
Only delete de log files ib_logfile0, ib_logfile1 and ibdata1 in the /var/lib/mysql directory and then type:
"mysqld_safe --user=mysql &"
and automatically the mysql.sock file will be create and the news logs files.
- 03-21-2005 #7Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
Re: Solution to lost mysql.sock file
Wow!!! Do not this if you are using InnoDB as db. Then you'll loose a lot of information. Deleting those files that is.
Originally Posted by moradoxy
- 11-23-2005 #8Just Joined!
- Join Date
- Nov 2005
- Posts
- 1
How to recreate mysqld.pid & mysqld.sock
Hi,
Somehow the mysqld.pid (/var/run/) & mysqld.sock (/tmp/) files got deleted deleted. Consequently, mysql is not getting started. I'm finding it difficult to restore the files.
Require your urgent attention.
Thanks in advance
--
Nabonita
- 11-23-2005 #9That is the best reason for anybody to get away from Microsoft Windows! Very well said Dolda2000.
Originally Posted by Dolda2000 <advertising NOT allowed in signatures>
- 11-28-2005 #10Just Joined!
- Join Date
- Jan 2005
- Location
- Oregon
- Posts
- 2
I am in the exact same fix. I upgraded to mysql 5.1 and haven't been able to restart the server. I do not have a mysql.sock file and I am unable to generate on. The server fails with this error at boot up.
When I doCode:Starting MySQLCouldn't find MySQL manager or server [FAILED]
I getCode:mysql -u root -p
Code:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)



