Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2017
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. modify /etc/init.d/mysqld to contain this
  2.  
  3. start(){
  4. [ -x $exec ] || exit 5
  5. # cleanup stale sock file
  6. test -e $socketfile
  7. if [ $? -eq 0 ]; then
  8. ps cax | grep mysqld_safe
  9. if [ $? -eq 1]; then
  10. echo "unclean shotdown detected. Removing sock file $socketfile"
  11. rm -f $socketfile
  12. fi
  13. fi
  14. # check to see if it's already running
  15. RESPONSE=$(/usr/bin/mysqladmin --no-defaults --socket="$adminsocket" --user=UNKNOWN_MYSQL_USER ping 2>&1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement