Bug #60852 mysqldiskusage does not work

Submitted: 13 Apr 2011 11:43 Modified: 9 Jul 2012 19:10
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S1 (Critical)
Version:5.2.33 OS:Linux (Ubuntu 10.10)
Assigned to: Assigned Account CPU Architecture:Any

[13 Apr 2011 11:43] Daniël van Eeden
Description:
mysqldiskusage has a critical error: there is a line added on line 1. This will disable the hashbang, and causes the script not to be run in python, but in bash.

How to repeat:
$ /usr/bin/mysqldiskusage
/usr/bin/mysqldiskusage: line 23: 
This file contains the import database utility which allows users to import
metadata for objects in a database and data for tables.
: command not found
/usr/bin/mysqldiskusage: line 25: import: command not found
/usr/bin/mysqldiskusage: line 26: import: command not found
/usr/bin/mysqldiskusage: line 27: import: command not found
/usr/bin/mysqldiskusage: line 28: import: command not found
/usr/bin/mysqldiskusage: line 29: import: command not found
from: can't read /var/mail/mysql.utilities
from: can't read /var/mail/mysql.utilities.command
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.common.options
from: can't read /var/mail/mysql.utilities.exception
/usr/bin/mysqldiskusage: line 38: NAME: command not found
/usr/bin/mysqldiskusage: line 39: DESCRIPTION: command not found
/usr/bin/mysqldiskusage: line 40: USAGE: command not found
/usr/bin/mysqldiskusage: line 42: syntax error near unexpected token `('
/usr/bin/mysqldiskusage: line 42: `def print_elapsed_time(start_test):'

Suggested fix:
--- /usr/bin/mysqldiskusage	2011-03-17 13:48:45.000000000 +0100
+++ /tmp/mysqldiskusage	2011-04-13 13:38:29.895356566 +0200
@@ -1,4 +1,3 @@
-
 #!/usr/bin/env python
 #
 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
[13 Apr 2011 11:59] Valeriy Kravchuk
Verified by code review.
[9 Jul 2012 19:10] Chuck Bell
Fixed in 1.0.1.
[9 Jul 2012 19:13] Chuck Bell
Release 1.0.1

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.