Bug #23586 Server- Install to dir other than /opt causes basedir to be duplicated(br 1781)
Submitted: 24 Oct 2006 16:20 Modified: 26 Oct 2006 15:23
Reporter: Mark Leith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S1 (Critical)
Version: OS:
Assigned to: Keith Russell CPU Architecture:Any

[24 Oct 2006 16:20] Mark Leith
Description:
Installing the service manager to a directory such as /usr/local causes the "base directory" for the service manager installation to be "duplicated" within the mysqlnetworkctl.sh script. 

This causes errors such as:

/mysqlnetworkctl.sh: line 119: /usr/local/mysqlnetwork-0.6.33/mysqlnetwork-0.6.33/mysql/bin/mysqld_safe: No such file or directory

Here the path should in fact be:

/usr/local/mysqlnetwork-0.6.33/mysql/bin/mysqld_safe

The installation is still simply installed to:

/usr/local/mysqlnetwork-0.6.33/

How to repeat:
o Install using a non-default path such as:

/usr/local/mysqlnetwork-x.x.x 

o ./mysqlnetworkctl.sh start

Suggested fix:
Do not duplicate the paths within the mysqlnetworkctl.sh script.
[24 Oct 2006 16:36] Keith Russell
Submitted to Bitrock.
[25 Oct 2006 22:37] Keith Russell
Reported as resolved by Bitrock in ver => 7.12
[26 Oct 2006 14:00] Carsten Segieth
tested OK with 0.7.12, installed as a simple user on qa-srv-b (Suse 9.3) into a 'non-standard' path (different from /opt):

csegieth@qa-srv-b:~/mysql/network/server/0.7.12/qa-srv-b>./mysqlnetworkctl.sh stop
Using CATALINA_BASE:   /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat
Using CATALINA_HOME:   /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat
Using CATALINA_TMPDIR: /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat/temp
Using JRE_HOME:       /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/java
MySQL will prompt you for the root password.
./mysqlnetworkctl.sh : mysql stopped
Syntax OK
./mysqlnetworkctl.sh : httpd stopped
csegieth@qa-srv-b:~/mysql/network/server/0.7.12/qa-srv-b>./mysqlnetworkctl.sh start
./mysqlnetworkctl.sh : mysql  started
Starting mysqld daemon with databases from /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/mysql/data/
Using CATALINA_BASE:   /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat
Using CATALINA_HOME:   /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat
Using CATALINA_TMPDIR: /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/apache-tomcat/temp
Using JRE_HOME:       /users/csegieth/mysql/network/server/0.7.12/qa-srv-b/java
Syntax OK
./mysqlnetworkctl.sh : httpd started

We need to test it again with sudo.
[26 Oct 2006 15:23] Carsten Segieth
now tested also OK using sudo:

Setup has completed installing MySQL Network files on your computer.
Uninstalling the MySQL Network files can be done by invoking:
/opt/pino/mysql/network/0.7.12/uninstall