Skip to content

Instantly share code, notes, and snippets.

@blueberrystream
Created February 4, 2015 05:37
Show Gist options
  • Save blueberrystream/fdb229827556b7fe1fb6 to your computer and use it in GitHub Desktop.
Save blueberrystream/fdb229827556b7fe1fb6 to your computer and use it in GitHub Desktop.
mysql_secure_installationするときに/tmp/mysql.sockにシンボリックリンクを張って、終わったら消すやつ
#!/bin/bash
set -eux
# check simply argument
: $1
ln -s /tmp/mysql/socket/$1.sock /tmp/mysql.sock
mysql_secure_installation
rm /tmp/mysql.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment