Skip to content

Instantly share code, notes, and snippets.

@ubermuda
Created July 29, 2014 13:39
Show Gist options
  • Save ubermuda/9d1da47a82348d889acf to your computer and use it in GitHub Desktop.
Save ubermuda/9d1da47a82348d889acf to your computer and use it in GitHub Desktop.
#!/bin/bash
/usr/bin/mysqld_safe > /dev/null 2>&1 &
RET=1
while [[ RET -ne 0 ]]; do
sleep 1;
mysql -e 'exit' > /dev/null 2>&1; RET=$?
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment