]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- init updates for 4.0.x, flush-logs action
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 28 Oct 2004 09:15:06 +0000 (09:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.init -> 1.36.4.1

mysql.init

index 00f695a5da5b787a5b5ccb80f04507c045e48c77..afbd9b79a0d73d7abb18407e1fa51463b2cbdd3f 100644 (file)
@@ -176,13 +176,15 @@ case "$1" in
          c_d="$c_d   References_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_d="$c_d   Index_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_d="$c_d   Alter_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_d="$c_d   Create_tmp_table_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_d="$c_d   Lock_tables_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_d="$c_d PRIMARY KEY Host (Host,Db,User),"
          c_d="$c_d KEY User (User)"
          c_d="$c_d )"
          c_d="$c_d comment='Database privileges';"
 
-         i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y');
-         INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y');"
+         i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y');
+         INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y');"
        fi
 
        if test ! -f $mdata/host.frm
@@ -200,6 +202,8 @@ case "$1" in
          c_h="$c_h  References_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_h="$c_h  Index_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_h="$c_h  Alter_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_h="$c_h  Create_tmp_table_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_h="$c_h  Lock_tables_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_h="$c_h  PRIMARY KEY Host (Host,Db)"
          c_h="$c_h )"
          c_h="$c_h comment='Host privileges;  Merged with database privileges';"
@@ -225,16 +229,30 @@ case "$1" in
          c_u="$c_u   References_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_u="$c_u   Index_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
          c_u="$c_u   Alter_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Show_db_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Super_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Create_tmp_table_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Lock_tables_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Execute_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Repl_slave_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   Repl_client_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
+         c_u="$c_u   ssl_type enum('','ANY','X509', 'SPECIFIED') DEFAULT '' NOT NULL,"
+         c_u="$c_u   ssl_cipher BLOB NOT NULL,"
+         c_u="$c_u   x509_issuer BLOB NOT NULL,"
+         c_u="$c_u   x509_subject BLOB NOT NULL,"
+         c_u="$c_u   max_questions int(11) unsigned DEFAULT 0  NOT NULL,"
+         c_u="$c_u   max_updates int(11) unsigned DEFAULT 0  NOT NULL,"
+         c_u="$c_u   max_connections int(11) unsigned DEFAULT 0  NOT NULL,"
          c_u="$c_u   PRIMARY KEY Host (Host,User)"
          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');
-         
+
          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');
-         
+
          INSERT INTO user VALUES ('localhost','mysql_logrotate','','N','N','N','N','N','N','Y','N','N','N','N','N','N','N');"
        fi
 
@@ -306,7 +324,7 @@ END_OF_DATA
            cat << END_OF_MSG
 
 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL USERS!
-This is done with:
+This is done (after starting database) with:
 
 /usr/bin/mysqladmin -u mysql password 'password'
 /usr/bin/mysqladmin -h $hostname -u mysql password 'password'
@@ -347,11 +365,14 @@ us, you MUST use the /usr/bin/mysqlbug script!
 
 END_OF_MSG
 
-       exit 1 
+       exit 1
        fi
        ;;
+  flush-logs)
+       /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
+       ;;
   *)
-       msg_usage "$0 {start|stop|init|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|init|restart|force-reload|status|flush-logs}"
        exit 3
 esac
 
This page took 0.041284 seconds and 4 git commands to generate.