MySQL Install Guide Without Using Install Script

From GWAVA Technologies Training
Revision as of 00:03, 18 December 2014 by Danielc (Talk | contribs)

Jump to: navigation, search

This section is dedicated to those that refuse to use the install script. I assume you're just stubborn. What's that? You want to learn something? I suppose you can read on too.

Contents

Downloading MySQL

Are you a simpleton and/or maybe lazy? Well, I suppose I can enable you: General download page: http://dev.mysql.com/downloads/mysql/


Installing MySQL

Linux

(As of this writing done on SLES 10/11)

Installing the RPM packages.

Simple command to do so:

server: # rpm -ivh MySQL-server-5.5.41-1.sles11.x86_64.rpm

You'll need to install both the server and the client.

Modifying the installation

This would be the best time to put in your own settings for MySQL and the my.cnf file in /etc/

Copy it from /usr/share/doc/packages/MySQL-server/

The installer bundled with Retain uses the my-large.cnf file and modifies the path locations. Use whatever file you feel best fits the server environment.

If you want to do a data directory other than the default /var/lib/mysql/ Add the line:

datadir=/path/to/where/you/want/the/MySQL/data

Couple of notes about adding this path:

  • Do not put a trailing / on it, you don't need it.
  • The installer places this under the line "[mysqld]" for continuity sake please keep it there if you're modifying this line.

Here's an example File:My.cnf.doc

Personal tools
Namespaces

Variants
Actions
Home
Exchange
GroupWise
JAVA
Linux
MTK
Retain
GW Monitoring and Reporting (Redline)
GW Disaster Recovery (Reload)
GW Forensics (Reveal)
GWAVA
Secure Messaging Gateway
GW Mailbox Management (Vertigo)
Windows
Other
User Experience
Toolbox
Languages
Toolbox