Author: glen                         Date: Wed May 30 21:36:18 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- /usr/bin is default path
- log init errors to /var/log/mysql/err

---- Files affected:
SOURCES:
   mysql.init (1.114 -> 1.115) 

---- Diffs:

================================================================
Index: SOURCES/mysql.init
diff -u SOURCES/mysql.init:1.114 SOURCES/mysql.init:1.115
--- SOURCES/mysql.init:1.114    Sat Mar 17 02:12:56 2007
+++ SOURCES/mysql.init  Wed May 30 23:36:13 2007
@@ -395,7 +395,9 @@
 
        ok=0
        /usr/sbin/mysqld --bootstrap --skip-grant-tables \
-               --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER < 
$MYSQL_DATA_DIR/mysql-init.sql && ok=1
+               --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER < \
+               $MYSQL_DATA_DIR/mysql-init.sql 2>> /var/log/mysql/err && ok=1
+
        [ -f $MYSQL_DATA_DIR/mysql/host.frm ] || ok=0
        if [ "$ok" = 1 ]; then
                rm -f $MYSQL_DATA_DIR/mysql-init.sql
@@ -405,15 +407,15 @@
 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL USERS!
 This is done (after starting database; press enter when asked for password) 
with:
 
-/usr/bin/mysqladmin -u mysql -S $MYSQL_SOCKET password 'password'
-/usr/bin/mysqladmin -h $hostname -u mysql -S $MYSQL_SOCKET password 'password'
-/usr/bin/mysqladmin -u mysql_logrotate -S $MYSQL_SOCKET password 'password'
+mysqladmin -u mysql -S $MYSQL_SOCKET password 'password'
+mysqladmin -h $hostname -u mysql -S $MYSQL_SOCKET password 'password'
+mysqladmin -u mysql_logrotate -S $MYSQL_SOCKET password 'password'
 
 NOTE: mysql_logrotate password should be placed to $MYSQL_CONFIG in
 mysqladmin section. See the manual for more instructions.
 
 If you want to use new help tables in MySQL 4.1.x then you'll need to import 
the help data:
-/usr/bin/mysql -u mysql -p -S $MYSQL_SOCKET mysql < 
/usr/share/mysql/fill_help_tables.sql
+mysql -u mysql -p -S $MYSQL_SOCKET mysql < 
/usr/share/mysql/fill_help_tables.sql
 
 END_OF_MSG
       else
@@ -428,10 +430,10 @@
 
 /usr/sbin/mysqld --skip-grant &
 
-You can use the command line tool /usr/bin/mysql to connect to the mysql
+You can use the command line tool mysql to connect to the mysql
 database and look at the grant tables:
 
-shell> /usr/bin/mysql -u mysql mysql
+shell> mysql -u mysql mysql
 mysql> show tables
 
 Try 'mysqld --help' if you have problems with paths. Setting on
@@ -445,7 +447,7 @@
 mysql_install_db', and the manual section that describes problems on
 your OS.  Another information source is the MySQL email archive.
 Please check all of the above before mailing us!  And if you do mail
-us, you MUST use the /usr/bin/mysqlbug script!
+us, you MUST use the mysqlbug script!
 
 END_OF_MSG
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/mysql.init?r1=1.114&r2=1.115&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to