Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql.sock was deleted, how do I get it back?

Status
Not open for further replies.

bigtimehelp

Programmer
Aug 29, 2001
7
US
mysql.sock was deleted, how do I get it back?
 
kill any mysql processes, than restart with the safe_mysqld command.

On my UNIX system, ps will show the processes
I have to execute safe_mysqld from the directory above, by going ./bin/safe_mysqld

 
Hi,

Thanks for the info.

Here are my results:

[root@www drj]# ps x f
PID TTY STAT TIME COMMAND
2070 pts/0 S 0:00 su
2071 pts/0 S 0:00 bash
2091 pts/0 R 0:00 \_ ps x f
1 ? S 0:04 init [3]
2 ? SW 0:00 [keventd]
3 ? SW 0:00 [kapm-idled]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [kreclaimd]
6 ? SW 0:00 [bdflush]
7 ? SW 0:00 [kupdated]
8 ? SW< 0:00 [mdrecoveryd]
185 ? S 0:00 /bin/bash /etc/rc.d/rc 3
539 ? S 0:00 \_ /bin/sh /etc/rc3.d/S99local start
541 ? S 0:00 \_ /bin/sh /etc/rc.d/init.d/strongholdctl start
542 ? S 0:00 \_ /bin/sh /etc/httpsd/bin/start-server
543 ? S 0:00 \_ /bin/sh /etc/httpsd/bin/start-server
544 ? S 0:00 \_ bin/httpd -d /etc/httpsd -f conf/httpd.conf
417 ? S 0:00 syslogd -m 0
422 ? S 0:00 klogd -2
490 ? S 0:01 /usr/sbin/sshd
2041 ? S 0:00 \_ /usr/sbin/sshd
503 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
522 ? S 0:00 sendmail: accepting connections
535 ? S 0:00 crond
2027 ? S 0:00 \_ CROND
2028 ? S 0:00 \_ /bin/bash /usr/bin/run-parts /etc/cron.hourly
2030 ? S 0:00 \_ awk -v progname=/etc/cron.hourly/sysstat progname {????? print progname &quot;:\n&quot;????? progna
1012 ? S 0:00 bin/httpd -d /etc/httpsd -f conf/httpd.conf
2031 ? S 0:00 /bin/sh /usr/lib/sa/sa1 600 6
2033 ? S 0:00 \_ /usr/lib/sa/sadc 600 6 /var/log/sa/sa02

Based on this, what command would I use to restart the server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top