FreeBSD Cookbook

My notes on the principles and practices of software related issues such as compiler, assembler, graphical user interface, and operating system design. I am currently learning these topics at university and FreeBSD as UNIX operating system for study purpose.
nixCraft » FreeBSD CookBook

Install MySQL Server using binary package or ports method

MySQL is one the best and fast database server for setting and using up under FreeBSD. You can install MySQL server using FreeBSD ports collection or install using binary packages from FreeBSD ftp server (which is quite fast as compare to ports method).

Install MySQL v5.0 server

Method # 1: Binary installation method


Login as the root user and type following command :

# pkg_add -r -v mysql5-server

Output:
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
setting passive mode
opening data connection
initiating transfer
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/mysql50-server.tbz...x +CONTENTS
x +COMMENT
x +DESC
....
....
.....
..
Method # 2: Use FreeBSD Ports collection
First Install MySQL server 5.0:

# cd /usr/ports/database/mysql50-server
# make
# make install
# make clean


Next Install MySQL client 5.0:

# cd /usr/ports/database/mysql50-client
# make
# make install
# make clean

Automatically start MySQL server up at system initial boot time
Introduction : Installing and configuring MySQL server

0 User Contributed Notes:

<< Home


Powered by blogger