Install Mysql on Freebsd

copy mysql tar bar into /usr/ports/distfiles
#cp mysql-5.1.53.tar.gz /usr/ports/distfiles

copy mysql ports to /usr/ports/databases
#cp mysql51-server.tar.gz /usr/ports/databases

change to /usr/ports/databases and remove mysql51-server
# cd /usr/ports/databases
# rm mysql51-server

unpack the ports
# tar zxvf mysql51-server.tar.gz

go to mysql51-server directory and edit makefile and add –with-innodb save
# cd mysql51-server
# ee Makefile

#make install -DBUILD_STATIC -DBUILD_OPTIMIZED

create dbdir

#mkdir /usr/dbdir
#chown mysql:mysql /usr/dbdir
#chmod 777 /usr/dbdir

edit /etc/rc.conf
mysql_enable=”YES”
mysql_dbdir=”/usr/dbdir”

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.