Bug #36307 Syntax error in mysql_install_db script
Submitted: 23 Apr 2008 22:52 Modified: 24 Apr 2008 4:35
Reporter: Dennis Gross Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0.51a 32-bit package OS:Solaris (Solaris 10)
Assigned to: CPU Architecture:Any
Tags: 32-bit, pkg install, solaris 10

[23 Apr 2008 22:52] Dennis Gross
Description:
When running the mysql_install_db script there are two syntax errors that are reported by the script as follows: 

mysql_install_db: !: not found

Please note that this bug has been reported and resolved for different versions of Solaris. But evidently not in the Solaris 10 pkg version.

How to repeat:
Run the script on a new MySQL install. 

Suggested fix:
Search for all instances of:

     if ! test -x 

and replace with

     if test ! -x

This should fix the problem. I believe there are three instances of this in the mysql_install_db script.
[24 Apr 2008 4:35] Valeriy Kravchuk
Thank you for a problem report. I'd say this is a duplicate of http://bugs.mysql.com/bug.php?id=35723. So, I expect the problem to be fixed only in packages released after April 3 2008, if any.