Bug #2375 Confusing mysql_install_db instructions
Submitted: 13 Jan 2004 10:11 Modified: 13 Jan 2004 10:33
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:all OS:Unix
Assigned to: Lenz Grimmer CPU Architecture:Any

[13 Jan 2004 10:11] Paul DuBois
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."
[13 Jan 2004 10:33] Lenz Grimmer
Thanks, fixed!