Bug #2988 CGI.pm not optional in mysqlaccess
Submitted: 26 Feb 2004 22:53 Modified: 30 Mar 2004 8:08
Reporter: Ask Hansen (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1.1 OS:
Assigned to: Michael Widenius CPU Architecture:Any

[26 Feb 2004 22:53] Ask Hansen
Description:
mysqlaccess seems to intend to have CGI.pm be an optional module, but it's not really.

How to repeat:
run mysqlaccess without CGI.pm installed.

Suggested fix:
--- bin/mysqlaccess~    2003-12-01 12:45:03.000000000 -0800
+++ bin/mysqlaccess     2004-02-26 22:44:17.000000000 -0800
@@ -527,7 +527,7 @@
        }
 }
 if ($MySQLaccess::CGI) { #CGI-version
-       use CGI;
+        require CGI;
        $Q = new CGI;
        $Param{'help'} = $Q->param('help') ;
        $Param{'host'} = $Q->param('host') || $Q->param('h') || $Param{'host'};
[30 Mar 2004 8:08] Michael Widenius
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Fix will be in 4.1.2