Monday, May 3, 2010

Fresh install

1) After unpacking, follow these steps...

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &

2) cp bin/ndb_mgm* /usr/local/bin (Copy the ndb related binaries)


3) create config file...

mkdir /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
nano config.ini


No comments:

Post a Comment