Hello Josh,

The RPM installation does not allow you to customize the MySQL options during the installation. You have 2 choices of how you would like to proceed:

Choice #1: Rebuild the RPM after changing zenoss.spec
Install the source RPM and modify the zenoss.spec in /usr/src/redhat/SPECS. At the top you will find %define's for the MySQL settings. After you finish modifying the script you can rebuild the binary RPM using the following command (run as root):
 # rpmbuild -ba /usr/src/redhat/SPECS/zenoss.spec

Be warned tho - the rpmbuild requires a few additional dependencies in order to build. And it takes a long time. :)

Choice #2: Modify /opt/zenoss/bin/zenoss_init and set the values manually
The zenoss_init script is run when the /opt/zenoss/.installed file does not exists and it is responsible for creating and initializing the MySQL and Zeo DB. If you modify /opt/zenoss/bin/zenoss_init and also rm /opt/zenoss/.installed you should be able to achieve the customization you're looking for.


I recommend choice #2. It requires < 30 seconds and will get you the customization you're looking for. If you're feeling ambitious and would like to rebuild the RPM send a reply and I'll send you a link to the src RPM (it's not out on sourceforge.net).



-c

Baird, Josh wrote:
Hello,

I have just installed the ZenOSS RPM per the instructions in the RPM
Installation PDF.  I have everything up and running fine, but I was
given no option to set my MySQL options (user/database name, etc).
Shouldn't the installation ask me these credentials and then populate
the database with some things?  I know that when installing from source,
install.sh should do this.  What am I missing in my RPM installation?  I
can see that it is trying to access a database with the username
"zenoss" but is unsuccessful.

This is a CentOS 4.4 box with MySql 5.0.22.

Thanks,

Josh Baird


------------------------------------------------------------------------

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to