
Chapter 5 Working With WebObjects and Web-Related Open Source Applications 69
To verify that Tomcat is running, use a browser to access port 9006 of your website by
entering the URL for your site followed by :9006. If Tomcat is running, this URL will
display the Tomcat home page.
MySQL
MySQL provides a relational database management solution for your web server. With
this open source software, you can link data in different tables or databases and
provide the information on your website.
The MySQL Manager application simplifies setting up the MySQL database on
Mac OS X Server. You can use MySQL Manager to initialize the MySQL database, and to
start and stop the MySQL service. MySQL Manager is located in /Applications/Server.
You use it to install required files (the first time you use the application), turn on MySQL
service, enter a root password, and allow network connections. The first time you run
MySQL manager, you may need to unlock it and supply an administrator password
before making changes.
MySQL is preinstalled on Mac OS X Server, with its various files already in the
appropriate locations. At some point you may wish to upgrade to a newer version of
MySQL. You can install the new version in /usr/local/mysql, but MySQL Manager will
not be aware of the new version of MySQL and will continue to control the pre-
installed version. If you do install a newer version of MySQL, use MySQL Manager to
stop the preinstalled version, then start the newer version via the config file.
Installing MySQL
Mac OS X Server version 10.4 includes the latest MySQL, version 4.1. Since it’s
preinstalled, you won’t find it in /usr/local/mysql. Instead, its elements are distributed in
the file system according to standard UNIX file layout, with executables in /usr/sbin and
/usr/bin, man pages in /usr/share/man, and other parts in /usr/share/mysql. When
installed, the MySQL database resides in /var/mysql.
At some point a newer version of MySQL will be posted to http://www.mysql.com. At
that time you may consider downloading the source and building it yourself (if you
have the developer packages installed) or downloading the appropriate binary
distribution and installing it yourself, following the instructions posted on that website.
By default, such installations reside in /usr/local/mysql/. So if you install your own
version of MySQL, you’ll have two versions of MySQL present on your system. This
should do no harm as long as you don’t try to run both the old one and the new one.
Just be sure to prefix any commands intended for the new version with the full path
(starting with /usr/local/mysql), or make sure your shell’s path variable is set to search
in your local directory first.
Kommentare zu diesen Handbüchern