If you??™re on Windows, this is easy to do. You first need to download MySQL from
http://www.mysql.com. Choose the Community Edition, version 5, and make sure also to
download the JDBC drivers. (They??™re called Connector/J.) You should put the JDBC drivers on
your CLASSPATH, and you should run the installer and start MySQL up. After you??™ve done this,
you can move on to configuring MySQL.
If you??™re on Mac OS X, you can either use the Unix instructions, you can use Mac Ports,
or you can download an installer from MySQL??™s home page. I use the installer, and that??™s been
working well for me. The process is almost entirely automatic. You also need to configure the
installation, though.
Finally, the best way to install MySQL on Unix systems, in my opinion, is to compile it yourself.
I??™ve been running MySQL extensively in Unix environments, and I usually find that the
precompiled binaries aren??™t as stable or well-performing as what I can achieve by compiling
myself. The first step towards compiling MySQL is to download the source distribution. You also
need to create a user and a group so MySQL won??™t run as root. Compilation follows the pattern
./configure && make && sudo make install, and you shouldn??™t have any difficulties.
CHAPTER 2 ?– GETTING STARTED 16
MySQL is installed in /usr/local/mysql by default. If you want to run MySQL as a service
you need to make sure that it starts on system boot, by using appropriate start scripts for your
operating system.
Pages:
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74