Open Framework, Information Management Strategy & Collaborative Governance | Data & Social Methodology - MIKE2.0 Methodology
Members
Collapse Expand Close

To join, please contact us.

Improve MIKE 2.0
Collapse Expand Close
Need somewhere to start? How about the most wanted pages; or the pages we know need more work; or even the stub that somebody else has started, but hasn't been able to finish. Or create a ticket for any issues you have found.

Installation error: Path to MySql is incorrect"

Open forum for questions and support about omCollab.

Installation error: Path to MySql is incorrect"

Postby Borofkin on Tue Jul 07, 2009 5:06 am

Hi all,

I get the following error when running the installation script:

======================
ERROR: Missing or invalid...

Path to MySql is incorrect (tried 'C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql')
======================

The path is correct and there is definitely a mysql.exe at that location. Any ideas?

I'm running Windows Server 2003, IIS 6.0, PHP 5.2, MySQL5.

Regards,
Dave.
Borofkin
 
Posts: 3
Joined: Tue Jul 07, 2009 4:59 am

Re: Installation error: Path to MySql is incorrect"

Postby Sean.mcclowry on Tue Jul 07, 2009 6:13 pm

Hi Dave,

Can you please try with a \ after the directory, e.g.:

Code: Select all
C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql\


Sean
Sean.mcclowry
 
Posts: 29
Joined: Sun Jan 25, 2009 12:01 am

Re: Installation error: Path to MySql is incorrect"

Postby Andreas.rindler on Tue Jul 07, 2009 6:22 pm

have you tried adding another \ at the end of the path?
----
Andi
Andreas.rindler
Site Admin
 
Posts: 13
Joined: Sat Jan 24, 2009 6:15 pm

Re: Installation error: Path to MySql is incorrect"

Postby Borofkin on Tue Jul 07, 2009 11:37 pm

The path that I'm using is "C:\Program Files\MySQL\MySQL Server 5.0\bin\" -- it already has a trailing backslash. The "mysql" part is added by the installation script -- I assumed it was the executable it was looking for.

I also tried with forward slashes and double backslashes, with the same result.

Why does it need that path anyway? What would I do if I was using a separate database server?


Dave.
Borofkin
 
Posts: 3
Joined: Tue Jul 07, 2009 4:59 am

Re: Installation error: Path to MySql is incorrect"

Postby Andreas.rindler on Wed Jul 08, 2009 8:05 am

The build.php script imports all databases and needs the path.

Code: Select all
 
foreach( $aDbs as $sDb ){
    $sCommand = "$sMySqlExecutable "
              . "-h {$build['omcollab_db_hostname']} "
              . "-u {$DbIni[$sDb]['Username']} "
              . "-p{$DbIni[$sDb]['Password']} "
              . "{$DbIni[$sDb]['Database']} < "
              . realpath("_InstallationResources/om{$sDb}_temp.sql");
    echo " * Building $sDb database {$DbIni[$sDb]['Database']} for {$DbIni[$sDb]['Username']}/{$DbIni[$sDb]['Password']}\n";
    exec( $sCommand, $aOutput );
    $aExecResults[$sCommand][] = $aOutput;
  }


I don't know how you would set up a separate db server. But presumably you would have some URI?!

I don't know why you are getting the error if you have the correct path and executable as you say. The message comes from here, where the install script can't find the executable:

Code: Select all
#path to mysql binary ('nix) or exe (win)
$path_to_mysql    = $expected_args['mysql_path'];
$sMySqlExecutable = "{$path_to_mysql}mysql" . ( $is_windows ? '.exe' : '' );
if( ! $preserve_data ){
    #verify location of mysql executable
    if( ! file_exists( $sMySqlExecutable ) || is_dir( $sMySqlExecutable ) ){
        $aErrors[] = "Path to MySql is incorrect (tried '$sMySqlExecutable')";
    }
}
----
Andi
Andreas.rindler
Site Admin
 
Posts: 13
Joined: Sat Jan 24, 2009 6:15 pm

Re: Installation error: Path to MySql is incorrect"

Postby Borofkin on Wed Jul 08, 2009 10:30 pm

The fact that my error message contains "mysql" instead of "mysql.exe" suggests that the script isn't properly detecting the OS type. I'll take a closer look at this today...
Borofkin
 
Posts: 3
Joined: Tue Jul 07, 2009 4:59 am


Return to omCollab Forum

Who is online

Users browsing this forum: No registered users and 1 guest