Rhyous

November 5, 2009

How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4?

Filed under: FreeBSD,MySQL,Red Hat — J. Abram barneck @ 2:17 pm
Tags: , ,

FreeBSD
There are two easy ways on FreeBSD:

From Ports

You can install easily from Ports. Make sure your ports tree is up to date:

$ su

Password:

ServerName#

ServerName#

ServerName#

portsnap fetch

portsnap extract

portsnap udpate

Then just do this to install MySQL on FreeBSD.

ServerName#

ServerName#

cd /usr/ports/databases/mysql51-server

make install

Or if you want to use utf8 by default, run this command:

ServerName# make WITH_CHARSET=utf8 install

MySQL 5.1 Server (and MySQL 5.1 client) will download, compile, and install automagically for you.

From Packages

You can also install easily as a binary package with this simple command.

ServerName# pkg_add -r mysql51-server

Make sure to secure you MySQL installation.
http://dev.mysql.com/doc/mysql-security-excerpt/5.1/en/default-privileges.html

Red Hat
Using RPM

You have to go to the MySQL site and download the MySQL 5.1 server RPM and install it.
http://dev.mysql.com/downloads/

It does not automatically install the MySQL client, you have to download that as a separate RPM and install it.

Using yum

Since I didn’t have a MySQL license, yum didn’t work, so I don’t know if it can be installed using yum.

Make sure to secure you MySQL installation.
http://dev.mysql.com/doc/mysql-security-excerpt/5.1/en/default-privileges.html


Copyright ® Rhyous.com – Linking to this article is allowed without permission and as many as ten lines of this article can be used along with this link. Any other use of this article is allowed only by permission of Rhyous.com.

Advertisements

7 Comments »

  1. […] I am not going to cover installing, I have done that here: How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4? […]

    Pingback by How to create a UTF-8 Unicode Database on MySQL? « Rhyous's 127.0.0.1 or ::1 — November 5, 2009 @ 2:54 pm | Reply

  2. […] How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4? Possibly related posts: (automatically generated)What are the first commands I run after installing FreeBSDHow to install MySQL on FreeBSD 7.2 or on Red Hat 5.4?Quickie HowTo – Apache with SSLFreeBSD Tip – Installed Ports Comments (2) […]

    Pingback by Installing an Apache + SSL on FreeBSD using the ports tree « Rhyous's 127.0.0.1 or ::1 — December 20, 2009 @ 4:37 pm | Reply

  3. […] Then install MySQL. How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4? […]

    Pingback by How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? « Rhyous's 127.0.0.1 or ::1 — January 19, 2010 @ 12:48 pm | Reply

  4. You can also install MySQL using the WITH_CHARSET=utf8 option to have it set utf8 as the default during the installation. a bit less work than adding the lines to the config manually =)

    Comment by Jon — September 10, 2010 @ 11:44 am | Reply

    • Jon,

      Thanks. That is good to know! I will try to add this up in the notes.

      Comment by rhyous — September 10, 2010 @ 6:13 pm | Reply

  5. […] I am not going to cover installing, I have done that here: How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4? […]

    Pingback by How to create a UTF-8 Unicode Database on MySQL and make UTF-8 Unicode the default? | Rhyous — August 28, 2011 @ 7:58 pm | Reply

  6. […] How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4? Copyright ® Rhyous.com – Linking to this article is allowed without permission and as many as ten lines of this article can be used along with this link. Any other use of this article is allowed only by permission of Rhyous.com. Tags: Apache, FreeBSD, SSL Category: FreeBSD  |  Comment (RSS)  |  Trackback […]

    Pingback by Installing an Apache + SSL on FreeBSD using the ports tree | Rhyous — January 21, 2012 @ 2:44 pm | Reply


RSS feed for comments on this post. TrackBack URI

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 )

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: