Bug #58534 mysql_install_db prints incomplete option name

Submitted: 27 Nov 2010 17:01 Modified: 10 Oct 2011 13:10
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:all OS:Any
Assigned to: CPU Architecture:Any

[27 Nov 2010 17:01] Paul DuBois
Description:
If mysql_install_db encounters a problem, one of its error messages is:

Installation of system tables failed!  Examine the logs in
./data for more information.

You can try to start the mysqld daemon with:

    shell> ./bin/mysqld --skip-grant &

"--skip-grant" is an incomplete option name. It should be "--skip-grant-tables" (if we ever implement another option with that same prefix, "--skip-grant" will be ambiguous). Besides, we should just display the full option name, not some arbitrary shorthand.

How to repeat:
Inspection of script.
[27 Nov 2010 17:23] Valeriy Kravchuk
Indeed:

macbook-pro:5.5-sec openxs$ grep -n skip-grant bin/mysql_install_db 
408:  echo "    shell> $mysqld --skip-grant &"

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.051 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.