MySQL Install Guide Without Using Install Script
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
- Go to http://www.mysql.com
- Get MySQL 5.5 or 5.6
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