Bug #2375 Confusing mysql_install_db instructions
Description:
The instructions that mysql_install_db displays after
creating the grant tables are a little confusing:
if test "$IN_RPM" = "0" then echo "To start mysqld at boot time you have to copy support-files/
mysql.server"
echo "to the right place for your system"
echo
fi
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
echo "This is done with:"
echo "$bindir/mysqladmin -u root password 'new-password'"
echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'"
echo "See the manual for more instructions."
Note that these instructions tell the user to set the password by running
a client program. However, at this point, the server is not running!
(mysql_install_db long ago used to leave the server running after creating
the grant tables, but this is no longer true.)
mysql_install_db should point out to the user that the server needs to be
started before running mysqladmin.
How to repeat:
Just run the script.
Suggested fix:
--- mysql_install_db.sh.orig Tue Jan 13 12:07:09 2004
+++ mysql_install_db.sh Tue Jan 13 12:11:21 2004
@@ -340,7 +340,7 @@
echo
fi
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
- echo "This is done with:"
+ echo "To do so, start the server, then issue the following commands:"
echo "$bindir/mysqladmin -u root password 'new-password'"
echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'"
echo "See the manual for more instructions."
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: The instructions that mysql_install_db displays after creating the grant tables are a little confusing: if test "$IN_RPM" = "0" then echo "To start mysqld at boot time you have to copy support-files/ mysql.server" echo "to the right place for your system" echo fi echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !" echo "This is done with:" echo "$bindir/mysqladmin -u root password 'new-password'" echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'" echo "See the manual for more instructions." Note that these instructions tell the user to set the password by running a client program. However, at this point, the server is not running! (mysql_install_db long ago used to leave the server running after creating the grant tables, but this is no longer true.) mysql_install_db should point out to the user that the server needs to be started before running mysqladmin. How to repeat: Just run the script. Suggested fix: --- mysql_install_db.sh.orig Tue Jan 13 12:07:09 2004 +++ mysql_install_db.sh Tue Jan 13 12:11:21 2004 @@ -340,7 +340,7 @@ echo fi echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !" - echo "This is done with:" + echo "To do so, start the server, then issue the following commands:" echo "$bindir/mysqladmin -u root password 'new-password'" echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'" echo "See the manual for more instructions."