Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 247] New - The port of MySQL cannot be specified.

cowiki
Discussion topic

Hide all messages in topic

All messages in topic

[Issue 247] New - The port of MySQL cannot be specified.

Author elf2000
Full name Tadashi Jokagi
Date 2006-01-22 23:08:57 PST
Message http://cowiki.tigris​.org/issues/show_bug​.cgi?id=247
                 Issue #|247
                 Summary|The port of MySQL cannot be specified.
               Component|cowiki
                 Version|0.4.0
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|Database
             Assigned to|paulha
             Reported by|elf2000






------- Additional comments from elf2000 at tigris dot org Sun Jan 22 23:08:57 -0800 2006 -------
The port of MySQL cannot be specified.
A reason is that GRANT of SQL fails.

on CVS HEAD(htdocs/setup/cl​ass/task/class.TaskD​ocumentStorageConnec​tor.php):
===== Cut Here ===== Cut Here ===== Cut Here =====
        $sQuery = 'SHOW GRANTS FOR '
                   . $Storage->getUserName()
                   . '@'
                   . $Storage->getHostString();
===== Cut Here ===== Cut Here ===== Cut Here =====

$Storage->getHostString() returns the following by this processing.
ex)"<hostname>​:<portnumber>"​

For solve this problem, I modified as follows.
if a problem does not have this, I will commit to CVS.

Index: htdocs/setup/class/t​ask/class.TaskDocume​ntStorageConnector.p​hp
====================​====================​====================​=======
RCS
file: /cvs/cowiki/htdocs/s​etup/class/task/clas​s.TaskDocumentStorag​eConnector.php
,v
retrieving revision 1.11
diff -r1.11 class.TaskDocumentSt​orageConnector.php
433c433
< . $Storage->getHostString();
---
> . ereg_replace( ":[0-9]+$", "", $Storage->getHostString());
Messages per page: