|
Prerequisites: |
FreeBSD (Base + Autoconf, Automake,
Bash and GCC) OpenSSL v0.9.8a or higher |
|
Overview: |
|
MySQL – The open source database server of choice
Home:
#
Add
a “mysql” user to your system:
(MySQL
should not need to run as root!)
pw groupadd
mysql
pw useradd mysql -n mysql -G
mysql -s /usr/sbin/nologin
# Download (Notes:
Users behind a Proxy
Server should read this and
users without Internet but have a CDRom read this.)
cd /usr/src
fetch
http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.27.tar.gz
# Unzip and Untar
tar xvf mysql-?.?.??.tar.gz
# Configure
cd mysql-?.?.??
./configure --prefix=/opt/mysql --with-mysqld-user=mysql --with-mysqlmanager
--enable-thread-safe-client --enable-assembler --with-tcp-port=3306
--without-debug --with-openssl=/usr/bin/openssl
--with-openssl-includes=/usr/include --with-openssl-libs=/usr/lib
# Compile
make all
# Install
make install
|
Add users, manually start the server and perform basic tests |
|
# Install the base database
# Perform basic checks
# Set a Password!
GRANT ALL PRIVILEGES ON *.* TO mysql@localhost
IDENTIFIED BY 'mysqlpassword' WITH GRANT OPTION;
# Run some tests before going into production
(optional) |
|
Copy and test the "rc" boot time startup script |
|
# Copy the "rc" startup script
# Clean up
# Perform basic checks using the password
# Edit your /etc/my.cnf |
|
Tune up MySQL to boost performance |
|
# Edit /etc/my.cnf |