MySQL v5 install

From Darwin

Jump to: navigation, search

Contents

MySQL V5 (User DBs) installation procedure

Download

  • unpacked into /home/software and made link: ln -s mysql-5-0-51a-linux-x86_64-icc-glibc23 mysql

Installation

  • created subdirs: ./var/lib, ./var/log, ./var/run/mysqld & /data/mysql/data
  • chown mysql:mysql of all software and data dirs
  • initialized the DB: scripts/mysql_install_db --user=mysql --basedir=/home/software/mysql --datadir=/data/mysql/data
  • created ./my.cnf startup config file with all the env defs to run a 2nd instance of the server using non-std locations for the software and data dirs.
  • cp support-files/mysql.server /etc/init.d/mysqld5 and edited it to start up a 2nd server with diff lock files
  • created modulefiles/mysql/5.0/mysql5 for users

Post-Installation

  • chkconfig mysqld5 on
  • changed root password and added beagle.local to the user grant table.
  • ran the benchmark test suite: sgl-bench/run-all-tests --log
  • granted Dirk all privs to admin the DB.