]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- mysql.sock will point to first initialized cluster
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 21 May 2004 12:52:07 +0000 (12:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.init -> 1.49

mysql.init

index 632948b01e2936ffe02589252342cc0e7bd07710..418c6e50a7e16ee834174516b68904da001ed027 100644 (file)
@@ -433,7 +433,10 @@ mysqlinit() {
            chown root:root "$MYSQL_CLUSTER_DIR/mysqld.conf"
            chmod 640 "$MYSQL_CLUSTER_DIR/mysqld.conf"
        fi
-               
+
+       if [ ! -e /var/lib/mysql/mysql.sock ]; then
+           ln -s "$MYSQL_SOCKET" /var/lib/mysql/mysql.sock
+       fi
 
        if /usr/sbin/mysqld --bootstrap --skip-grant-tables \
            --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER << END_OF_DATA
This page took 0.033156 seconds and 4 git commands to generate.