summaryrefslogtreecommitdiffstats
path: root/mysqld-wait-ready
diff options
context:
space:
mode:
Diffstat (limited to 'mysqld-wait-ready')
-rw-r--r--mysqld-wait-ready2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysqld-wait-ready b/mysqld-wait-ready
index 9b0fd0c..9e5d3e4 100644
--- a/mysqld-wait-ready
+++ b/mysqld-wait-ready
@@ -25,7 +25,7 @@ get_mysql_option(){
# Defaults here had better match what mysqld_safe will default to
get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
-get_mysql_option mysqld socket "$datadir/mysql.sock"
+get_mysql_option mysqld socket "/var/lib/mysql/mysql.sock"
socketfile="$result"
# Wait for the server to come up or for the mysqld process to disappear