SOURCES: mysql.init - use sql files provided by mysql to init mysq...
glen
glen at pld-linux.org
Wed May 30 23:42:53 CEST 2007
Author: glen Date: Wed May 30 21:42:52 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use sql files provided by mysql to init mysql database
---- Files affected:
SOURCES:
mysql.init (1.115 -> 1.116)
---- Diffs:
================================================================
Index: SOURCES/mysql.init
diff -u SOURCES/mysql.init:1.115 SOURCES/mysql.init:1.116
--- SOURCES/mysql.init:1.115 Wed May 30 23:36:13 2007
+++ SOURCES/mysql.init Wed May 30 23:42:47 2007
@@ -390,7 +390,9 @@
cat > $MYSQL_DATA_DIR/mysql-init.sql <<-EOF
CREATE DATABASE mysql;
- $(/usr/sbin/mysql_create_system_tables real $MYSQL_DATA_DIR/mysql "$hostname")
+ $(cat /usr/share/mysql/mysql_system_tables.sql)
+ use mysql;
+ $(sed -e "s,@@hostname,$hostname,g;s,'root','mysql',g" /usr/share/mysql/mysql_system_tables_data.sql)
EOF
ok=0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/mysql.init?r1=1.115&r2=1.116&f=u
More information about the pld-cvs-commit
mailing list