]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- fixed quotes causing corruption in one of messages
authorhawk <hawk@pld-linux.org>
Thu, 16 Dec 2004 08:31:19 +0000 (08:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- make init silent instead of displaying all mysqld output
- updated init structure, previous one was not allowing to change
  passwords after installation

Changed files:
    mysql.init -> 1.36.4.2

mysql.init

index afbd9b79a0d73d7abb18407e1fa51463b2cbdd3f..71526be6ab799bd2f4e490adbe7b997e9423bf31 100644 (file)
@@ -73,7 +73,7 @@ RETVAL=0
 case "$1" in
   start)
        if [ ! -d "$MYSQL_DATA_DIR/mysql" ]; then
-               nls "MySQL database not initialized. Try \"%s init\" before start." "$0" >&2
+               nls "MySQL database not initialized. Try '%s init' before start." "$0" >&2
                exit 6
        fi
 
@@ -247,13 +247,13 @@ case "$1" in
          c_u="$c_u )"
          c_u="$c_u comment='Users and global privileges';"
 
-         i_u="INSERT INTO user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
-         INSERT INTO user VALUES ('$hostname','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
+         i_u="INSERT INTO user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
+         INSERT INTO user VALUES ('$hostname','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
 
-         REPLACE INTO user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
-         REPLACE INTO user VALUES ('$hostname','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
+         REPLACE INTO user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
+         REPLACE INTO user VALUES ('$hostname','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
 
-         INSERT INTO user VALUES ('localhost','mysql_logrotate','','N','N','N','N','N','N','Y','N','N','N','N','N','N','N');"
+         INSERT INTO user VALUES ('localhost','mysql_logrotate','','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0);"
        fi
 
        if test ! -f $mdata/func.frm
@@ -301,7 +301,7 @@ case "$1" in
        fi
 
        if /usr/sbin/mysqld --bootstrap --skip-grant-tables \
-           --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER << END_OF_DATA
+           --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER >/dev/null 2>&1 << END_OF_DATA
 CREATE DATABASE mysql;
 use mysql;
 $c_d
This page took 0.19655 seconds and 4 git commands to generate.